X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_coloredit.cpp;h=5e3175a4989d83b826da24bdc20b194ea6e76fb0;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=8b47f5a5e058829ec5caae24101fc0cb369fe23a;hpb=0667e59c31738542883df0fbc65324ec978ed65e;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp b/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp index 8b47f5a..5e3175a 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp @@ -7,6 +7,7 @@ ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** Copyright (c) 2007 Chris Moore +** Copyright (c) 2008 Paul Wise ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -247,7 +248,7 @@ ColorSlider::on_event(GdkEvent *event) } else { x = float(event->button.x); } - + float pos(x/width); if(pos<0 || x<=0)pos=0; if(pos>1)pos=1;