diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-10-24 05:55:39 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-10-24 05:55:39 +0000 |
| commit | e851abcbbbe7e231d154f74cb29afe26ee6c7e74 (patch) | |
| tree | 01e97a3f205f757ccc10204e958b84d5fa07ed9d /src/sp-item-group.cpp | |
| parent | fix 1520018: sync up the embed/not embed transform logic when ungrouping with... (diff) | |
| download | inkscape-e851abcbbbe7e231d154f74cb29afe26ee6c7e74.tar.gz inkscape-e851abcbbbe7e231d154f74cb29afe26ee6c7e74.zip | |
whitespace
(bzr r1854)
Diffstat (limited to 'src/sp-item-group.cpp')
| -rw-r--r-- | src/sp-item-group.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp index d9f0e6f3d..ba96ed0d1 100644 --- a/src/sp-item-group.cpp +++ b/src/sp-item-group.cpp @@ -428,21 +428,21 @@ sp_item_group_ungroup (SPGroup *group, GSList **children, bool do_done) // 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)) |
