Fix initialization of color selector’s alpha value. color-selector
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 21 Aug 2009 08:04:46 +0000 (10:04 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 21 Aug 2009 08:04:46 +0000 (10:04 +0200)
synfig-studio/src/gtkmm/dialog_color.cpp

index e7dfaa7..4837839 100644 (file)
@@ -154,7 +154,7 @@ void
 Dialog_Color::set_color(const synfig::Color& color)
 {
                color_edit_widget->set_current_color(studio::colorconv_synfig2gdk(color));
-               color_edit_widget->set_current_alpha(color.get_a());
+               color_edit_widget->set_current_alpha(color.get_a() * 65535);
 }
 
 synfig::Color