summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/spray-tool.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2014-03-09 02:35:00 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2014-03-09 02:35:00 +0000
commit6f85c82ab5114e8cc97702ea8ab33e58b68a2163 (patch)
tree083217def653fdf5496412c9e919cfdcb8e7e8e7 /src/ui/tools/spray-tool.cpp
parentRemove useless r variable and warning (diff)
downloadinkscape-6f85c82ab5114e8cc97702ea8ab33e58b68a2163.tar.gz
inkscape-6f85c82ab5114e8cc97702ea8ab33e58b68a2163.zip
Fix random crashes when spraying in single path mode.
Fixes LP bug #1274831 Fixed bugs: - https://launchpad.net/bugs/1274831 (bzr r13131)
Diffstat (limited to 'src/ui/tools/spray-tool.cpp')
-rw-r--r--src/ui/tools/spray-tool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/tools/spray-tool.cpp b/src/ui/tools/spray-tool.cpp
index e43b6575e..08d3119a1 100644
--- a/src/ui/tools/spray-tool.cpp
+++ b/src/ui/tools/spray-tool.cpp
@@ -82,7 +82,7 @@ using namespace std;
// Disabled in 0.91 because of Bug #1274831 (crash, spraying an object
// with the mode: spray object in single path)
// Please enable again when working on 1.0
-//#define ENABLE_SPRAY_MODE_SINGLE_PATH
+#define ENABLE_SPRAY_MODE_SINGLE_PATH
#include "tool-factory.h"
@@ -140,7 +140,7 @@ static void sp_spray_scale_rel(Geom::Point c, SPDesktop */*desktop*/, SPItem *it
}
SprayTool::SprayTool()
- : ToolBase(cursor_spray_xpm, 4, 4)
+ : ToolBase(cursor_spray_xpm, 4, 4, false)
, pressure(TC_DEFAULT_PRESSURE)
, dragging(false)
, usepressure(0)