summaryrefslogtreecommitdiffstats
path: root/src/sp-shape.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp-shape.cpp')
-rw-r--r--src/sp-shape.cpp8
1 files changed, 2 insertions, 6 deletions
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! */