Code

Line-end fix
[inkscape.git] / src / dyna-draw-context.cpp
index 849e97c972c2fab9ea9b3cb16b5cdbd5a3843319..666ea4d2da0132db2bb9ea3b55df7c03be703b0b 100644 (file)
@@ -28,7 +28,8 @@
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 #include <glibmm/i18n.h>
-
+#include <string>
+#include <cstring>
 #include <numeric>
 
 #include "svg/svg.h"
@@ -45,6 +46,7 @@
 #include "desktop-affine.h"
 #include "desktop-style.h"
 #include "message-context.h"
+#include "prefs-utils.h"
 #include "pixmaps/cursor-calligraphy.xpm"
 #include "libnr/n-art-bpath.h"
 #include "libnr/nr-path.h"
@@ -294,6 +296,10 @@ sp_dyna_draw_context_setup(SPEventContext *ec)
     ddc->is_drawing = false;
 
     ddc->_message_context = new Inkscape::MessageContext((ec->desktop)->messageStack());
+
+    if (prefs_get_int_attribute("tools.calligraphic", "selcue", 0) != 0) {
+        ec->enableSelectionCue();
+    }
 }
 
 static void