Fix 1959064: Crash when use circle tool over an existing duck.
[synfig.git] / synfig-studio / trunk / src / gtkmm / state_circle.cpp
index f23632c..09667ad 100644 (file)
@@ -934,6 +934,7 @@ StateCircle_Context::event_mouse_click_handler(const Smach::event& x)
 
        if(event.key==EVENT_WORKAREA_MOUSE_BUTTON_DRAG && event.button==BUTTON_LEFT)
        {
+               if (!point2_duck) return Smach::RESULT_OK;
                point2_duck->set_point(point_holder-get_work_area()->snap_point_to_grid(event.pos));
                get_work_area()->queue_draw();
                return Smach::RESULT_ACCEPT;