From 7556d8b73d99852f3b4d01d20fda020e01db0789 Mon Sep 17 00:00:00 2001 From: Jabiertxo Arraiza Cenoz Date: Wed, 28 Mar 2018 11:07:45 +0200 Subject: Fix a updating path on LPE with path maipulations --- src/ui/tool/path-manipulator.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 192a02fe2..2da1875d2 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1513,6 +1513,7 @@ 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))) { -- cgit v1.2.3 From b94f9f6e94648d9a32bec912efb89eb82f1b11e1 Mon Sep 17 00:00:00 2001 From: Jabiertxo Arraiza Cenoz Date: Wed, 28 Mar 2018 11:27:10 +0200 Subject: Fix powerstroke update --- src/live_effects/parameter/powerstrokepointarray.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/live_effects/parameter/powerstrokepointarray.cpp b/src/live_effects/parameter/powerstrokepointarray.cpp index cf4adc5fd..8a8782bb4 100644 --- a/src/live_effects/parameter/powerstrokepointarray.cpp +++ b/src/live_effects/parameter/powerstrokepointarray.cpp @@ -194,6 +194,7 @@ 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 -- cgit v1.2.3 From f26b6039c2a0d75c8601672ab4bea5bc3b0e17a5 Mon Sep 17 00:00:00 2001 From: Jabiertxo Arraiza Cenoz Date: Wed, 28 Mar 2018 11:39:49 +0200 Subject: Fix LPE updating problems --- src/live_effects/parameter/powerstrokepointarray.cpp | 1 - src/object/sp-item-group.cpp | 1 + src/object/sp-shape.cpp | 2 +- src/ui/tool/path-manipulator.cpp | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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))) { -- cgit v1.2.3 From 78624e2fca1b1bfde81489aa8486ad4cc8b27fdd Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Tue, 27 Mar 2018 20:44:50 +0200 Subject: Fix bug: 1738504 Title:Measurement tool measures mirrored text in wrong position --- src/ui/tools/measure-tool.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/ui/tools/measure-tool.cpp b/src/ui/tools/measure-tool.cpp index 724e121d9..ba3e767b7 100644 --- a/src/ui/tools/measure-tool.cpp +++ b/src/ui/tools/measure-tool.cpp @@ -1321,7 +1321,6 @@ void MeasureTool::showCanvasItems(bool to_guides, bool to_item, bool to_phantom, curve->unref(); continue; } - curve->transform(item->transform); calculate_intersections(desktop, item, lineseg, curve, intersection_times); if (iter == te_get_layout(item)->end()) { -- cgit v1.2.3