diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-02-06 19:58:47 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-02-06 19:58:47 +0000 |
| commit | 4e47603ee65125b53e58d0476cbc762060536ba2 (patch) | |
| tree | b1d82bbd970a70d91528fde71362d558a123ae37 /src/sp-clippath.cpp | |
| parent | mirror Transform dialog / Rotate icon horizontally, fixes #1251955 (diff) | |
| download | inkscape-4e47603ee65125b53e58d0476cbc762060536ba2.tar.gz inkscape-4e47603ee65125b53e58d0476cbc762060536ba2.zip | |
add a method to get bbox of a clippath, fix the update-while-update warnings
(bzr r98)
Diffstat (limited to 'src/sp-clippath.cpp')
| -rw-r--r-- | src/sp-clippath.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/sp-clippath.cpp b/src/sp-clippath.cpp index d8d2acc9f..4b9ffb76c 100644 --- a/src/sp-clippath.cpp +++ b/src/sp-clippath.cpp @@ -352,13 +352,23 @@ sp_clippath_set_bbox(SPClipPath *cp, unsigned int key, NRRect *bbox) !NR_DF_TEST_CLOSE(v->bbox.x1, bbox->x1, NR_EPSILON) || !NR_DF_TEST_CLOSE(v->bbox.y1, bbox->y1, NR_EPSILON)) { v->bbox = *bbox; - SP_OBJECT(cp)->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); } break; } } } +void +sp_clippath_get_bbox(SPClipPath *cp, NRRect *bbox, NR::Matrix const &transform, unsigned const flags) +{ + for (SPObject *o = sp_object_first_child(SP_OBJECT(cp)); o != NULL; o = SP_OBJECT_NEXT(o)) { + if (SP_IS_ITEM(o)) { + SPItem *child = SP_ITEM(o); + sp_item_invoke_bbox_full(child, bbox, transform, flags, FALSE); + } + } +} + /* ClipPath views */ SPClipPathView * |
