From 9846ec4d96d1f0bff06254ca7cb63d79be7029a9 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 28 Jul 2007 21:03:56 +0000 Subject: [PATCH] pass the geometric bbox flag when taking bbox for clipping; unfortunately this still does not fix the clip-by-clone crash, now it crashes in the show method instead of bbox... --- src/sp-clippath.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sp-clippath.cpp b/src/sp-clippath.cpp index a1927f337..3a55c52f7 100644 --- a/src/sp-clippath.cpp +++ b/src/sp-clippath.cpp @@ -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); -- 2.30.2