summaryrefslogtreecommitdiffstats
path: root/src/path-chemistry.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2019-01-01 18:09:46 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-01-01 18:09:46 +0000
commit5a701624dae54b64008a126de7ecec7f66bce675 (patch)
tree718909fdb45429b8aed458f758b94091d3007275 /src/path-chemistry.cpp
parentGerman translation (diff)
downloadinkscape-5a701624dae54b64008a126de7ecec7f66bce675.tar.gz
inkscape-5a701624dae54b64008a126de7ecec7f66bce675.zip
Minor style fixes
Diffstat (limited to '')
-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);
}