From 2bfd3261b55e99070c91db3005d0fff15182b577 Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 22 May 2020 11:15:04 -0300 Subject: [PATCH] Define fill_toolloop_params_from_tool_preferences() only when needed --- src/app/ui/editor/tool_loop_impl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/ui/editor/tool_loop_impl.cpp b/src/app/ui/editor/tool_loop_impl.cpp index 78423d1fc..ffb68c02f 100644 --- a/src/app/ui/editor/tool_loop_impl.cpp +++ b/src/app/ui/editor/tool_loop_impl.cpp @@ -62,6 +62,8 @@ namespace app { using namespace ui; +#ifdef ENABLE_UI + static void fill_toolloop_params_from_tool_preferences(ToolLoopParams& params) { ToolPreferences& toolPref = @@ -74,6 +76,8 @@ static void fill_toolloop_params_from_tool_preferences(ToolLoopParams& params) params.freehandAlgorithm = toolPref.freehandAlgorithm(); } +#endif // ENABLE_UI + ////////////////////////////////////////////////////////////////////// // Common properties between drawing/preview ToolLoop impl