From 9acb5bc09cfde3943739876154ddedd6f43cfc7a Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 2 Apr 2007 15:13:43 +0000 Subject: [PATCH] Don't "assert(color.is_valid())" before setting the colour's alpha component - it might not have been initialised yet. git-svn-id: http://svn.voria.com/code@419 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp b/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp index 5d19976..dd1bb9e 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp @@ -525,14 +525,12 @@ Widget_ColorEdit::get_value_raw() color.set_r(gamma_out(R_adjustment.get_value()/100.0f)); color.set_g(gamma_out(G_adjustment.get_value()/100.0f)); color.set_b(gamma_out(B_adjustment.get_value()/100.0f)); - assert(color.is_valid()); } else { color.set_r(R_adjustment.get_value()/100); color.set_g(G_adjustment.get_value()/100); color.set_b(B_adjustment.get_value()/100); - assert(color.is_valid()); } color.set_a(A_adjustment.get_value()/100); assert(color.is_valid()); -- 2.7.4