diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-03-19 23:30:45 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-03-19 23:30:45 +0000 |
| commit | 66a9066a6cdcb91598b63591c0d8792a4f25220e (patch) | |
| tree | 86698fc069a734fb88441533712b383831c9ab3a /src/sp-item.cpp | |
| parent | patch by Andrius R. for (un)clip and (un)mask commands (diff) | |
| download | inkscape-66a9066a6cdcb91598b63591c0d8792a4f25220e.tar.gz inkscape-66a9066a6cdcb91598b63591c0d8792a4f25220e.zip | |
do not embed transform if the item has clippath or mask (so that the clippath/mask is affected by the same transform)
(bzr r264)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 4dbdb127d..6aae4609e 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -1147,10 +1147,11 @@ sp_item_write_transform(SPItem *item, Inkscape::XML::Node *repr, NR::Matrix cons sp_item_adjust_paint_recursive (item, NR::identity(), NR::identity(), false); } - // run the object's set_transform if transforms are stored optimized + // run the object's set_transform if transforms are stored optimized and there's no clippath or mask gint preserve = prefs_get_int_attribute("options.preservetransform", "value", 0); NR::Matrix transform_attr (transform); - if (((SPItemClass *) G_OBJECT_GET_CLASS(item))->set_transform && !preserve) { + if (((SPItemClass *) G_OBJECT_GET_CLASS(item))->set_transform + && !preserve && !item->clip_ref->getObject() && !item->mask_ref->getObject()) { transform_attr = ((SPItemClass *) G_OBJECT_GET_CLASS(item))->set_transform(item, transform); } sp_item_set_item_transform(item, transform_attr); |
