summaryrefslogtreecommitdiffstats
path: root/src/ui/tool-factory.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2015-11-21 12:48:59 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2015-11-21 12:48:59 +0000
commit83f263c97c5499811d3f30a86271a2981c35a97a (patch)
tree90a94397e32a9a61926f793a2c476f15c503295c /src/ui/tool-factory.cpp
parentwindow/task bar icon missing when installed in non-standard location (diff)
parentAdd warning about missing Potrace to CMake build (diff)
downloadinkscape-83f263c97c5499811d3f30a86271a2981c35a97a.tar.gz
inkscape-83f263c97c5499811d3f30a86271a2981c35a97a.zip
Compile against external libpotrace
Fixed bugs: - https://launchpad.net/bugs/1156664 (bzr r14480)
Diffstat (limited to 'src/ui/tool-factory.cpp')
-rw-r--r--src/ui/tool-factory.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/tool-factory.cpp b/src/ui/tool-factory.cpp
index 700bd40ce..c6c579c9e 100644
--- a/src/ui/tool-factory.cpp
+++ b/src/ui/tool-factory.cpp
@@ -16,7 +16,11 @@
#include "ui/tools/connector-tool.h"
#include "ui/tools/dropper-tool.h"
#include "ui/tools/eraser-tool.h"
-#include "ui/tools/flood-tool.h"
+
+#if HAVE_POTRACE
+# include "ui/tools/flood-tool.h"
+#endif
+
#include "ui/tools/gradient-tool.h"
#include "ui/tools/lpe-tool.h"
#include "ui/tools/measure-tool.h"
@@ -52,8 +56,10 @@ ToolBase *ToolFactory::createObject(std::string const& id)
tool = new DropperTool;
else if (id == "/tools/eraser")
tool = new EraserTool;
+#if HAVE_POTRACE
else if (id == "/tools/paintbucket")
tool = new FloodTool;
+#endif
else if (id == "/tools/gradient")
tool = new GradientTool;
else if (id == "/tools/lpetool")