summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/path.cpp
diff options
context:
space:
mode:
authorkamalpreetgrewal <grewalkamal005@gmail.com>2016-07-04 09:06:38 +0000
committerkamalpreetgrewal <grewalkamal005@gmail.com>2016-07-04 09:06:38 +0000
commit72896cb4bcb3f582b64ffefad3b4e8b33ad2efb4 (patch)
tree425bb3d2a34fce3c52aa39e11e0675d4780f6b80 /src/live_effects/parameter/path.cpp
parentAdd support to select corresponding treeview rows when objects are selected (diff)
parentRename function, fix some indenting issues. (diff)
downloadinkscape-72896cb4bcb3f582b64ffefad3b4e8b33ad2efb4.tar.gz
inkscape-72896cb4bcb3f582b64ffefad3b4e8b33ad2efb4.zip
Merge changes from trunk
(bzr r14949.1.37)
Diffstat (limited to 'src/live_effects/parameter/path.cpp')
-rw-r--r--src/live_effects/parameter/path.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/live_effects/parameter/path.cpp b/src/live_effects/parameter/path.cpp
index bed191e83..f0c494267 100644
--- a/src/live_effects/parameter/path.cpp
+++ b/src/live_effects/parameter/path.cpp
@@ -237,7 +237,6 @@ PathParam::param_editOncanvas(SPItem *item, SPDesktop * dt)
r.role = SHAPE_ROLE_LPE_PARAM;
r.edit_transform = item->i2dt_affine(); // TODO is it right?
- r.edit_transform *= item->transform.inverse();
if (!href) {
r.item = reinterpret_cast<SPItem*>(param_effect->getLPEObj());
r.lpe_key = param_key;
@@ -458,8 +457,7 @@ PathParam::paste_param_path(const char *svgd)
SPItem * item = SP_ACTIVE_DESKTOP->getSelection()->singleItem();
if (item != NULL) {
Geom::PathVector path_clipboard = sp_svg_read_pathv(svgd);
- path_clipboard *= item->i2doc_affine().inverse() * item->transform;
- path_clipboard *= Geom::Translate(path_clipboard.initialPoint() - _pathvector.initialPoint()).inverse();
+ path_clipboard *= item->i2doc_affine().inverse();
svgd = sp_svg_write_path( path_clipboard );
}