From 72cc39b9f0b340548f395c7f61ca9662b34aea09 Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Sat, 27 Aug 2011 11:04:37 +0200 Subject: Refactor SPItem bounding box methods: remove NRRect usage and make code using them more obvious. Fix filter region computation. (bzr r10582.1.1) --- src/print.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/print.cpp') diff --git a/src/print.cpp b/src/print.cpp index 2eadf0fa9..3e477c976 100644 --- a/src/print.cpp +++ b/src/print.cpp @@ -56,16 +56,18 @@ sp_print_comment(SPPrintContext *ctx, char const *comment) unsigned int sp_print_fill(SPPrintContext *ctx, Geom::PathVector const &pathv, Geom::Affine const *ctm, SPStyle const *style, - NRRect const *pbox, NRRect const *dbox, NRRect const *bbox) + Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox) { - return ctx->module->fill(pathv, ctm, style, pbox, dbox, bbox); + NRRect nrpbox(pbox), nrdbox(dbox), nrbbox(bbox); + return ctx->module->fill(pathv, ctm, style, &nrpbox, &nrdbox, &nrbbox); } unsigned int sp_print_stroke(SPPrintContext *ctx, Geom::PathVector const &pathv, Geom::Affine const *ctm, SPStyle const *style, - NRRect const *pbox, NRRect const *dbox, NRRect const *bbox) + Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox) { - return ctx->module->stroke(pathv, ctm, style, pbox, dbox, bbox); + NRRect nrpbox(pbox), nrdbox(dbox), nrbbox(bbox); + return ctx->module->stroke(pathv, ctm, style, &nrpbox, &nrdbox, &nrbbox); } unsigned int -- cgit v1.2.3