Partially fix 1678141: add an int to ColorAccumulator converter, same as the Color one
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 11 Mar 2007 07:15:57 +0000 (07:15 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 11 Mar 2007 07:15:57 +0000 (07:15 +0000)
git-svn-id: http://svn.voria.com/code@289 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/color.h

index 2df724f..dcd7629 100644 (file)
@@ -632,6 +632,9 @@ public:
                g_(c.g_),
                b_(c.b_) { }
 
+       //! Converter
+       ColorAccumulator(int c): a_(c),r_(c), g_(c), b_(c) { }
+
        //! Returns the RED component
        const value_type& get_r()const { return r_; }