summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/spray-tool.cpp
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2014-02-08 15:02:17 +0000
committerJazzyNico <nicoduf@yahoo.fr>2014-02-08 15:02:17 +0000
commit75ceef199c1032a2424b3aaa01c8027cea3f9ef1 (patch)
tree49440fe6b3d2c9ed2bb70fd27b7aaaa2069b7ab4 /src/ui/tools/spray-tool.cpp
parentreverting triangle.py and wireframe_sphere.py from rev 13007 (diff)
downloadinkscape-75ceef199c1032a2424b3aaa01c8027cea3f9ef1.tar.gz
inkscape-75ceef199c1032a2424b3aaa01c8027cea3f9ef1.zip
Fix for Bug #879058 (Spray Single Path Mode includes original object).
Fixed bugs: - https://launchpad.net/bugs/879058 (bzr r13011)
Diffstat (limited to 'src/ui/tools/spray-tool.cpp')
-rw-r--r--src/ui/tools/spray-tool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tools/spray-tool.cpp b/src/ui/tools/spray-tool.cpp
index 91c606e8e..4ea482461 100644
--- a/src/ui/tools/spray-tool.cpp
+++ b/src/ui/tools/spray-tool.cpp
@@ -453,7 +453,7 @@ static bool sp_spray_recursive(SPDesktop *desktop,
Geom::OptRect a = parent_item->documentVisualBounds();
if (a) {
- if (i == 2) {
+ if (i == 1) {
Inkscape::XML::Node *copy1 = old_repr->duplicate(xml_doc);
parent->appendChild(copy1);
SPObject *new_obj1 = doc->getObjectByRepr(copy1);