From 643e2891f5d071fcc84e906b696d106696ca5fed Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 9 Feb 2008 20:56:27 +0000 Subject: [PATCH] Give slight priority to radius ducks. That way, it's possible to select the radius duck for a circle with radius zero. Previously the position duck would usually be selected instead. git-svn-id: http://svn.voria.com/code@1644 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/duckmatic.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/duckmatic.cpp b/synfig-studio/trunk/src/gtkmm/duckmatic.cpp index df247ae..cd137cb 100644 --- a/synfig-studio/trunk/src/gtkmm/duckmatic.cpp +++ b/synfig-studio/trunk/src/gtkmm/duckmatic.cpp @@ -774,6 +774,8 @@ Duckmatic::find_duck(synfig::Point point, synfig::Real radius, Duck::Type type) if(duck->get_type()&Duck::TYPE_VERTEX) dist*=1.0001; + else if(duck->get_type()&Duck::TYPE_RADIUS) + dist*=0.9999; if(dist<=closest && !( duck->get_type() && (!(type & duck->get_type())) ) ) { -- 2.7.4