When dragging a duck along a bline that it's linked to, update the tangents as well...
[synfig.git] / synfig-studio / trunk / src / gtkmm / state_circle.cpp
index fb06cd5..7f16925 100644 (file)
@@ -160,7 +160,7 @@ public:
 
        void make_circle(const Point& p1, const Point& p2);
 
-};     // END of class StateGradient_Context
+};     // END of class StateCircle_Context
 
 /* === M E T H O D S ======================================================= */
 
@@ -494,8 +494,8 @@ StateCircle_Context::event_mouse_click_handler(const Smach::event& x)
 
                if (App::restrict_radius_ducks)
                {
-                       if ((point[0] - point_holder[0]) * get_work_area()->get_pw() < 0) point[0] = point_holder[0];
-                       if ((point[1] - point_holder[1]) * get_work_area()->get_ph() > 0) point[1] = point_holder[1];
+                       if ((point[0] - point_holder[0]) < 0) point[0] = point_holder[0];
+                       if ((point[1] - point_holder[1]) < 0) point[1] = point_holder[1];
                }
 
                make_circle(point_holder, point);