diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-09-10 18:19:06 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-09-10 18:19:06 +0000 |
| commit | 62104183de32a021daecb09d5fd0ca9759af5fae (patch) | |
| tree | 68301817c08297652335d44573440b9fc119ae82 /src/tweak-context.cpp | |
| parent | set minimal appearace for toolbar widget (diff) | |
| download | inkscape-62104183de32a021daecb09d5fd0ca9759af5fae.tar.gz inkscape-62104183de32a021daecb09d5fd0ca9759af5fae.zip | |
preserve path effect
(bzr r3714)
Diffstat (limited to 'src/tweak-context.cpp')
| -rw-r--r-- | src/tweak-context.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/tweak-context.cpp b/src/tweak-context.cpp index 49b39a5e6..b662ca2de 100644 --- a/src/tweak-context.cpp +++ b/src/tweak-context.cpp @@ -369,6 +369,7 @@ sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, NR::Poi if (orig == NULL) { return false; } + Path *res = new Path; res->SetBackData(false); @@ -455,10 +456,15 @@ sp_tweak_dilate_recursive (Inkscape::Selection *selection, SPItem *item, NR::Poi if (res->descr_cmd.size() > 1) { gchar *str = res->svg_dump_path(); - if (newrepr) + if (newrepr) { newrepr->setAttribute("d", str); - else - SP_OBJECT_REPR(item)->setAttribute("d", str); + } else { + if (SP_IS_SHAPE(item) && SP_SHAPE(item)->path_effect_href) { + SP_OBJECT_REPR(item)->setAttribute("inkscape:original-d", str); + } else { + SP_OBJECT_REPR(item)->setAttribute("d", str); + } + } g_free(str); } else { // TODO: if there's 0 or 1 node left, delete this path altogether @@ -935,7 +941,7 @@ sp_tweak_context_root_handler(SPEventContext *event_context, num = g_slist_length((GSList *) desktop->selection->itemList()); } if (num == 0) { - tc->_message_context->set(Inkscape::NORMAL_MESSAGE, _("<b>Select objects</b> to tweak")); + tc->_message_context->set(Inkscape::NORMAL_MESSAGE, _("<b>Nothing selected!</b> Select objects to tweak.")); } else { switch (tc->mode) { case TWEAK_MODE_PUSH: |
