diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2011-03-17 19:13:06 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2011-03-17 19:13:06 +0000 |
| commit | ab5c39d6151762215e0fa7e1bbd159e40bc751ab (patch) | |
| tree | 475732b690aacb18d341e4254a9cbf26d059d9d5 /src/splivarot.cpp | |
| parent | Filters. Custom predefined filters fine tuning (precision and UI labels). (diff) | |
| download | inkscape-ab5c39d6151762215e0fa7e1bbd159e40bc751ab.tar.gz inkscape-ab5c39d6151762215e0fa7e1bbd159e40bc751ab.zip | |
Linked Offset. Merge branch lp:~ado-papas/inkscape/bug_167419 (Bug #167419, Bug #184341, Bug #239430).
(bzr r10109)
Diffstat (limited to 'src/splivarot.cpp')
| -rw-r--r-- | src/splivarot.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/splivarot.cpp b/src/splivarot.cpp index c01296b0e..9c2fc8ff9 100644 --- a/src/splivarot.cpp +++ b/src/splivarot.cpp @@ -1487,6 +1487,7 @@ sp_selected_path_create_offset_object(SPDesktop *desktop, int expand, bool updat if ( updating ) { //XML Tree being used directly here while it shouldn't be + item->doWriteTransform(item->getRepr(), transform); char const *id = item->getRepr()->attribute("id"); char const *uri = g_strdup_printf("#%s", id); repr->setAttribute("xlink:href", uri); @@ -1505,11 +1506,7 @@ sp_selected_path_create_offset_object(SPDesktop *desktop, int expand, bool updat SPItem *nitem = (SPItem *) sp_desktop_document(desktop)->getObjectByRepr(repr); - if ( updating ) { - // on conserve l'original - // we reapply the transform to the original (offset will feel it) - item->doWriteTransform(item->getRepr(), transform); - } else { + if ( !updating ) { // delete original, apply the transform to the offset item->deleteObject(false); nitem->doWriteTransform(repr, transform); |
