summaryrefslogtreecommitdiffstats
path: root/src/print.cpp
diff options
context:
space:
mode:
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