diff options
| author | Jabiertxof <jtx@jtx> | 2016-12-06 20:48:14 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2016-12-06 20:48:14 +0000 |
| commit | dcb86798cf8409035c632b6c429bc8b2f9ea84d3 (patch) | |
| tree | f4b76f1c12b94b8704bf4c76620a093a4a42c62b /src/ui/tool/path-manipulator.cpp | |
| parent | Update to trunk (diff) | |
| parent | Fixes for measure LPE and speed path based LPE operations (diff) | |
| download | inkscape-dcb86798cf8409035c632b6c429bc8b2f9ea84d3.tar.gz inkscape-dcb86798cf8409035c632b6c429bc8b2f9ea84d3.zip | |
Update to trunk
(bzr r15295.1.8)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
| -rw-r--r-- | src/ui/tool/path-manipulator.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index f316bea38..75b507a57 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1493,10 +1493,14 @@ void PathManipulator::_setGeometry() } else { if (empty()) return; //XML Tree being used here directly while it shouldn't be. - if (_path->getRepr()->attribute("inkscape:original-d")) - _path->set_original_curve(_spcurve, false, false); - else + if (SPCurve * original = _path->get_original_curve()){ + if(!_spcurve->is_equal(original)) { + _path->set_original_curve(_spcurve, false, false); + delete original; + } + } else if(!_spcurve->is_equal(_path->get_curve())) { _path->setCurve(_spcurve, false); + } } } |
