diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-01 18:09:46 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-01 18:09:46 +0000 |
| commit | 5a701624dae54b64008a126de7ecec7f66bce675 (patch) | |
| tree | 718909fdb45429b8aed458f758b94091d3007275 /src/path-chemistry.cpp | |
| parent | German translation (diff) | |
| download | inkscape-5a701624dae54b64008a126de7ecec7f66bce675.tar.gz inkscape-5a701624dae54b64008a126de7ecec7f66bce675.zip | |
Minor style fixes
Diffstat (limited to 'src/path-chemistry.cpp')
| -rw-r--r-- | src/path-chemistry.cpp | 5 |
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); } |
