diff options
| author | Jabiertxof <jtx@jtx> | 2016-12-06 20:41:55 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2016-12-06 20:41:55 +0000 |
| commit | f799b5d6e8278c76326a6fec8da0e017eac342ec (patch) | |
| tree | 91fa98cf037add28f39673d0886317c31c9e6e46 /src/ui/tool/path-manipulator.cpp | |
| parent | Add dpiswitcher extension and option to scale legacy documents with it. (diff) | |
| download | inkscape-f799b5d6e8278c76326a6fec8da0e017eac342ec.tar.gz inkscape-f799b5d6e8278c76326a6fec8da0e017eac342ec.zip | |
Fixes for measure LPE and speed path based LPE operations
(bzr r15302)
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); + } } } |
