summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-02-16 20:39:20 +0000
committerJabiertxof <jtx@jtx>2017-02-16 20:39:20 +0000
commitb5746c69a30ebacc0e18df50b864e19309a654a1 (patch)
tree1349664825b62186295c913ec7b5665caffcf0ba /src
parentFix crashes when element is not shape in rotate copies and mirror symmetry. r... (diff)
downloadinkscape-b5746c69a30ebacc0e18df50b864e19309a654a1.tar.gz
inkscape-b5746c69a30ebacc0e18df50b864e19309a654a1.zip
Remmove unneded conditional from rotate copies and mirror symmetry
(bzr r15524)
Diffstat (limited to 'src')
-rw-r--r--src/live_effects/lpe-copy_rotate.cpp2
-rw-r--r--src/live_effects/lpe-mirror_symmetry.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/live_effects/lpe-copy_rotate.cpp b/src/live_effects/lpe-copy_rotate.cpp
index 329005878..15ee5eb24 100644
--- a/src/live_effects/lpe-copy_rotate.cpp
+++ b/src/live_effects/lpe-copy_rotate.cpp
@@ -187,7 +187,7 @@ LPECopyRotate::cloneD(SPObject *origin, SPObject *dest, bool root, bool reset)
}
SPShape * shape = SP_SHAPE(origin);
SPPath * path = SP_PATH(dest);
- if (!path && !SP_IS_GROUP(dest) && shape) {
+ if (shape && !path) {
Inkscape::XML::Node *dest_node = sp_selected_item_to_curved_repr(SP_ITEM(dest), 0);
dest->updateRepr(xml_doc, dest_node, SP_OBJECT_WRITE_ALL);
path = SP_PATH(dest);
diff --git a/src/live_effects/lpe-mirror_symmetry.cpp b/src/live_effects/lpe-mirror_symmetry.cpp
index c4101fe79..ad374c5f8 100644
--- a/src/live_effects/lpe-mirror_symmetry.cpp
+++ b/src/live_effects/lpe-mirror_symmetry.cpp
@@ -196,7 +196,7 @@ LPEMirrorSymmetry::cloneD(SPObject *origin, SPObject *dest, bool live, bool root
}
SPShape * shape = SP_SHAPE(origin);
SPPath * path = SP_PATH(dest);
- if (!path && !SP_IS_GROUP(dest) && shape) {
+ if (shape && !path) {
Inkscape::XML::Node *dest_node = sp_selected_item_to_curved_repr(SP_ITEM(dest), 0);
dest->updateRepr(xml_doc, dest_node, SP_OBJECT_WRITE_ALL);
path = SP_PATH(dest);