From cf3d5921d491f97ac25b2e0624f6817564562fe1 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 24 Oct 2006 05:55:39 +0000 Subject: [PATCH] whitespace --- src/sp-item-group.cpp | 30 +++++++++++++++--------------- 1 file 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)) -- 2.30.2