summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/path-chemistry.cpp')
-rw-r--r--src/path-chemistry.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/path-chemistry.cpp b/src/path-chemistry.cpp
index b58fa4f15..56c93289d 100644
--- a/src/path-chemistry.cpp
+++ b/src/path-chemistry.cpp
@@ -401,10 +401,9 @@ sp_item_list_to_curves(const std::vector<SPItem*> &items, std::vector<SPItem*>&
if (lpeitem) {
selected.erase(remove(selected.begin(), selected.end(), item), selected.end());
lpeitem->removeAllPathEffects(true);
- SPObject *elemref = nullptr;
- if (elemref = document->getObjectById(id)) {
+ SPObject *elemref = document->getObjectById(id);
+ if (elemref) {
//If the LPE item is a shape is converted to a path so we need to reupdate the item
-
item = dynamic_cast<SPItem *>(elemref);
selected.push_back(item);
}