diff options
| author | Jabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es> | 2018-03-28 09:39:49 +0000 |
|---|---|---|
| committer | Jabiertxo Arraiza Cenoz <jtx@jtx-desktop.markerlab.es> | 2018-03-28 09:39:49 +0000 |
| commit | f26b6039c2a0d75c8601672ab4bea5bc3b0e17a5 (patch) | |
| tree | e03f24c9ec09e45bafe741d6be55ef0c17360834 /src | |
| parent | Fix powerstroke update (diff) | |
| download | inkscape-f26b6039c2a0d75c8601672ab4bea5bc3b0e17a5.tar.gz inkscape-f26b6039c2a0d75c8601672ab4bea5bc3b0e17a5.zip | |
Fix LPE updating problems
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/parameter/powerstrokepointarray.cpp | 1 | ||||
| -rw-r--r-- | src/object/sp-item-group.cpp | 1 | ||||
| -rw-r--r-- | src/object/sp-shape.cpp | 2 | ||||
| -rw-r--r-- | src/ui/tool/path-manipulator.cpp | 1 |
4 files changed, 2 insertions, 3 deletions
diff --git a/src/live_effects/parameter/powerstrokepointarray.cpp b/src/live_effects/parameter/powerstrokepointarray.cpp index 8a8782bb4..cf4adc5fd 100644 --- a/src/live_effects/parameter/powerstrokepointarray.cpp +++ b/src/live_effects/parameter/powerstrokepointarray.cpp @@ -194,7 +194,6 @@ PowerStrokePointArrayParamKnotHolderEntity::knot_set(Geom::Point const &p, Geom: prefs->setDouble("/live_effect/power_stroke/width", offset); } sp_lpe_item_update_patheffect(SP_LPE_ITEM(item), false, false); - SP_LPE_ITEM(item)->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); } Geom::Point diff --git a/src/object/sp-item-group.cpp b/src/object/sp-item-group.cpp index 3d89a524d..ac467f627 100644 --- a/src/object/sp-item-group.cpp +++ b/src/object/sp-item-group.cpp @@ -925,6 +925,7 @@ void SPGroup::update_patheffect(bool write) { } } } + this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); } static void diff --git a/src/object/sp-shape.cpp b/src/object/sp-shape.cpp index 0687ef1fa..4af596d1e 100644 --- a/src/object/sp-shape.cpp +++ b/src/object/sp-shape.cpp @@ -764,9 +764,9 @@ void SPShape::update_patheffect(bool write) } else { repr->setAttribute("d", NULL); } - this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); } c_lpe->unref(); + this->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); } } diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 2da1875d2..192a02fe2 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1513,7 +1513,6 @@ void PathManipulator::_setGeometry() if(!_spcurve->is_equal(original)) { _path->setCurveBeforeLPE(_spcurve, false); sp_lpe_item_update_patheffect(_path, true, false); - _path->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); original->unref(); } } else if(!_spcurve->is_equal(_path->getCurve(true))) { |
