X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Fsrc%2Fgtkmm%2Fstate_sketch.cpp;h=f8b77a3a054fcf69cb6bf457b35638110b84d446;hb=60625faec2a962c4c9de782c43bfe51b494547c3;hp=5db2044d1cd9fd0adf89c9950067e01b5c0e0be6;hpb=ad671f0e8e7bc34c0ceaf78c58a99921cab199e6;p=synfig.git diff --git a/synfig-studio/src/gtkmm/state_sketch.cpp b/synfig-studio/src/gtkmm/state_sketch.cpp index 5db2044..f8b77a3 100644 --- a/synfig-studio/src/gtkmm/state_sketch.cpp +++ b/synfig-studio/src/gtkmm/state_sketch.cpp @@ -36,6 +36,7 @@ #include #include "state_sketch.h" +#include "state_normal.h" #include "state_stroke.h" #include "canvasview.h" #include "workarea.h" @@ -336,7 +337,7 @@ StateSketch_Context::StateSketch_Context(CanvasView* canvas_view): // Turn off layer clicking get_work_area()->set_allow_layer_clicks(false); - get_canvas_view()->work_area->set_cursor(Gdk::PENCIL); + get_work_area()->set_cursor(Gdk::PENCIL); // Turn off duck clicking get_work_area()->set_allow_duck_clicks(false); @@ -362,7 +363,7 @@ StateSketch_Context::StateSketch_Context(CanvasView* canvas_view): StateSketch_Context::~StateSketch_Context() { - get_canvas_view()->work_area->reset_cursor(); + get_work_area()->reset_cursor(); App::dialog_tool_options->clear();