summaryrefslogtreecommitdiffstats
path: root/src/ui/tool-factory.cpp
diff options
context:
space:
mode:
authorAlex Valavanis <valavanisalex@gmail.com>2015-11-09 00:46:25 +0000
committerAlex Valavanis <valavanisalex@gmail.com>2015-11-09 00:46:25 +0000
commit94f3d50ddcbd6ceca8d3d834554a5100142648e4 (patch)
tree678134bf89fec34955dc6fdcba44c24d772a7de3 /src/ui/tool-factory.cpp
parentAdd CMake check for Potrace from OSP: http://goo.gl/AEzbkQ (diff)
downloadinkscape-94f3d50ddcbd6ceca8d3d834554a5100142648e4.tar.gz
inkscape-94f3d50ddcbd6ceca8d3d834554a5100142648e4.zip
Enable builds without flood/trace on systems without Potrace
(bzr r14449.1.4)
Diffstat (limited to '')
-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")