From e93821409140f74f3c27b3f8a42bda8b16dd4dfe Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sat, 12 Jul 2008 15:21:12 +0000 Subject: 2geomify print, fill and stroke methods of extensions (bzr r6274) --- src/sp-shape.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/sp-shape.cpp') diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index 9a0ee1fd7..91d7dd5f8 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -613,15 +613,11 @@ sp_shape_print (SPItem *item, SPPrintContext *ctx) SPStyle* style = SP_OBJECT_STYLE (item); if (!style->fill.isNone()) { - const_NRBPath bp; - bp.path = shape->curve->get_bpath(); - sp_print_fill (ctx, &bp, &i2d, style, &pbox, &dbox, &bbox); + sp_print_fill (ctx, shape->curve->get_pathvector(), &i2d, style, &pbox, &dbox, &bbox); } if (!style->stroke.isNone()) { - const_NRBPath bp; - bp.path = shape->curve->get_bpath(); - sp_print_stroke (ctx, &bp, &i2d, style, &pbox, &dbox, &bbox); + sp_print_stroke (ctx, shape->curve->get_pathvector(), &i2d, style, &pbox, &dbox, &bbox); } /* TODO: make code prettier: lots of variables can be taken out of the loop! */ -- cgit v1.2.3