Fix 1959064: Crash when use circle tool over an existing duck.
[synfig.git] / synfig-studio / trunk / src / gtkmm / state_star.cpp
index 5fe9440..df75ec9 100644 (file)
@@ -960,6 +960,7 @@ StateStar_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;