From 5a701624dae54b64008a126de7ecec7f66bce675 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Tue, 1 Jan 2019 19:09:46 +0100 Subject: Minor style fixes --- src/path-chemistry.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/path-chemistry.cpp') 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 &items, std::vector& 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(elemref); selected.push_back(item); } -- cgit v1.2.3