summaryrefslogtreecommitdiffstats
path: root/src/object
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-09-29 10:41:28 +0000
committerNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-09-30 22:58:30 +0000
commit02902e9c0ff7294421e0e87b9cacc9e4e779217f (patch)
treec61786bbea82a20fcb0c19f92b2253488f8b54f6 /src/object
parentDon't create empty text node when reading in "textPath". (diff)
downloadinkscape-02902e9c0ff7294421e0e87b9cacc9e4e779217f.tar.gz
inkscape-02902e9c0ff7294421e0e87b9cacc9e4e779217f.zip
Reduce memory leaks when dragging shapes
Remove unnecessary copy per Thomas' suggestion
Diffstat (limited to 'src/object')
-rw-r--r--src/object/sp-shape.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object/sp-shape.cpp b/src/object/sp-shape.cpp
index 011dc9edc..2070bf4a1 100644
--- a/src/object/sp-shape.cpp
+++ b/src/object/sp-shape.cpp
@@ -454,7 +454,8 @@ void SPShape::modified(unsigned int flags) {
}
}
}
- if (!this->getCurve()) {
+
+ if (!this->getCurve(TRUE)) { // avoid copy
sp_lpe_item_update_patheffect(this, true, false);
}
}