summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7150f08)
raw | patch | inline | side by side (parent: 7150f08)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 24 Oct 2006 05:55:39 +0000 (05:55 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 24 Oct 2006 05:55:39 +0000 (05:55 +0000) |
src/sp-item-group.cpp | patch | blob | history |
diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp
index d9f0e6f3ded9230e04bb95c054e18addef9d4c51..ba96ed0d1b37364187bff01509aca25bdf3ac2b5 100644 (file)
--- a/src/sp-item-group.cpp
+++ b/src/sp-item-group.cpp
// fill in the children list if non-null
SPItem *item = (SPItem *) doc->getObjectByRepr(repr);
- /* Optimize the transform matrix if requested. */
- // No compensations are required because this is supposed to be a non-transformation visually.
- // FIXME: this if is wholly lifted from sp_item_write_transform and should stay in sync
- NR::Matrix transform_attr (item->transform);
- if ( // run the object's set_transform (i.e. embed transform) only if:
- ((SPItemClass *) G_OBJECT_GET_CLASS(item))->set_transform && // it does have a set_transform method
- !preserve && // user did not chose to preserve all transforms
- !item->clip_ref->getObject() && // the object does not have a clippath
- !item->mask_ref->getObject() && // the object does not have a mask
- !(!transform_attr.is_translation() && SP_OBJECT_STYLE(item) && SP_OBJECT_STYLE(item)->filter.filter)
- // the object does not have a filter, or the transform is translation (which is supposed to not affect filters)
- ) {
- transform_attr = ((SPItemClass *) G_OBJECT_GET_CLASS(item))->set_transform(item, item->transform);
- }
- sp_item_set_item_transform(item, transform_attr);
+ /* Optimize the transform matrix if requested. */
+ // No compensations are required because this is supposed to be a non-transformation visually.
+ // FIXME: this if is wholly lifted from sp_item_write_transform and should stay in sync
+ NR::Matrix transform_attr (item->transform);
+ if ( // run the object's set_transform (i.e. embed transform) only if:
+ ((SPItemClass *) G_OBJECT_GET_CLASS(item))->set_transform && // it does have a set_transform method
+ !preserve && // user did not chose to preserve all transforms
+ !item->clip_ref->getObject() && // the object does not have a clippath
+ !item->mask_ref->getObject() && // the object does not have a mask
+ !(!transform_attr.is_translation() && SP_OBJECT_STYLE(item) && SP_OBJECT_STYLE(item)->filter.filter)
+ // the object does not have a filter, or the transform is translation (which is supposed to not affect filters)
+ ) {
+ transform_attr = ((SPItemClass *) G_OBJECT_GET_CLASS(item))->set_transform(item, item->transform);
+ }
+ sp_item_set_item_transform(item, transform_attr);
Inkscape::GC::release(repr);
if (children && SP_IS_ITEM (item))