Don't "assert(color.is_valid())" before setting the colour's alpha component - it...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 2 Apr 2007 15:13:43 +0000 (15:13 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 2 Apr 2007 15:13:43 +0000 (15:13 +0000)
git-svn-id: http://svn.voria.com/code@419 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/widget_coloredit.cpp

index 5d19976..dd1bb9e 100644 (file)
@@ -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());