summaryrefslogtreecommitdiffstats
path: root/src/ui/tool
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-10-09 06:05:56 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-10-09 06:05:56 +0000
commit5a2dae366dd8d2797b55b0cd0eb801d2e03f0176 (patch)
tree17a5c707895752d7599e211f4d43f3fad16491b6 /src/ui/tool
parentLast string change to this file moved today from skip files to translate fil... (diff)
downloadinkscape-5a2dae366dd8d2797b55b0cd0eb801d2e03f0176.tar.gz
inkscape-5a2dae366dd8d2797b55b0cd0eb801d2e03f0176.zip
Improve node selection ~x3 removing unneded updateNow() called in non necesary places. Also ensure canvas is always redraw
Diffstat (limited to 'src/ui/tool')
-rw-r--r--src/ui/tool/multi-path-manipulator.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/tool/multi-path-manipulator.cpp b/src/ui/tool/multi-path-manipulator.cpp
index 90662237e..544ababbe 100644
--- a/src/ui/tool/multi-path-manipulator.cpp
+++ b/src/ui/tool/multi-path-manipulator.cpp
@@ -181,7 +181,11 @@ void MultiPathManipulator::setItems(std::set<ShapeRecord> const &s)
}
// add newly selected items
+ bool updatecanvas = false;
for (const auto & r : shapes) {
+ if (IS_LIVEPATHEFFECT(r.item)) {
+ updatecanvas = true;
+ }
if (!SP_IS_PATH(r.item) && !IS_LIVEPATHEFFECT(r.item)) continue;
std::shared_ptr<PathManipulator> newpm(new PathManipulator(*this, (SPPath*) r.item,
r.edit_transform, _getOutlineColor(r.role, r.item), r.lpe_key));
@@ -193,6 +197,9 @@ void MultiPathManipulator::setItems(std::set<ShapeRecord> const &s)
newpm->setLiveObjects(_live_objects);
_mmap.insert(std::make_pair(r, newpm));
}
+ if (updatecanvas) {
+ _desktop->updateNow();
+ }
}
void MultiPathManipulator::selectSubpaths()