summaryrefslogtreecommitdiffstats
path: root/src/print.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-08-27 09:04:37 +0000
committerKrzysztof Kosinski <tweenk.pl@gmail.com>2011-08-27 09:04:37 +0000
commit72cc39b9f0b340548f395c7f61ca9662b34aea09 (patch)
tree34a0853cff6c6040bc2a0572dfa365280fce2601 /src/print.cpp
parentFix "snap guides" toggle (diff)
downloadinkscape-72cc39b9f0b340548f395c7f61ca9662b34aea09.tar.gz
inkscape-72cc39b9f0b340548f395c7f61ca9662b34aea09.zip
Refactor SPItem bounding box methods: remove NRRect usage and make code
using them more obvious. Fix filter region computation. (bzr r10582.1.1)
Diffstat (limited to 'src/print.cpp')
-rw-r--r--src/print.cpp10
1 files changed, 6 insertions, 4 deletions
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