Code

pass the geometric bbox flag when taking bbox for clipping; unfortunately this still...
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 28 Jul 2007 21:03:56 +0000 (21:03 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 28 Jul 2007 21:03:56 +0000 (21:03 +0000)
src/sp-clippath.cpp

index a1927f337c052ad9d554221b267339e438e05121..3a55c52f76cb5d3c6a4c06eff8a17e2712a00bbd 100644 (file)
@@ -334,13 +334,13 @@ sp_clippath_get_bbox(SPClipPath *cp, NRRect *bbox, NR::Matrix const &transform,
     for (i = sp_object_first_child(SP_OBJECT(cp)); i && !SP_IS_ITEM(i); i = SP_OBJECT_NEXT(i));
     if (!i) return;
 
-    sp_item_invoke_bbox_full(SP_ITEM(i), bbox, NR::Matrix(SP_ITEM(i)->transform) * transform, flags, FALSE);
+    sp_item_invoke_bbox_full(SP_ITEM(i), bbox, NR::Matrix(SP_ITEM(i)->transform) * transform, SPItem::GEOMETRIC_BBOX, FALSE);
     SPObject *i_start = i; 
 
     while (i != NULL) {
         if (i != i_start) {
             NRRect i_box;
-            sp_item_invoke_bbox_full(SP_ITEM(i), &i_box, NR::Matrix(SP_ITEM(i)->transform) * transform, flags, FALSE);
+            sp_item_invoke_bbox_full(SP_ITEM(i), &i_box, NR::Matrix(SP_ITEM(i)->transform) * transform, SPItem::GEOMETRIC_BBOX, FALSE);
             nr_rect_d_union (bbox, bbox, &i_box);
         }
         i = SP_OBJECT_NEXT(i);