The line "SR1=SR2=SR3=typename T::value_type();" in ETL/trunk/ETL/_gaussian.h expects...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 26 Sep 2007 22:36:41 +0000 (22:36 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 26 Sep 2007 22:36:41 +0000 (22:36 +0000)
git-svn-id: http://svn.voria.com/code@768 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index ad6a81c..d38964c 100644 (file)
@@ -209,7 +209,11 @@ public:
        }
 
 public:
-       Color() /*:r_(0), g_(0), b_(0), a_(0)*/ { }
+       // ETL/trunk/ETL/_gaussian.h does:
+       //   SR1=SR2=SR3=typename T::value_type();
+       // and expects that to give it initialised colors
+       // Otherwise the 'gaussian' blur type is random.
+       Color() :r_(0), g_(0), b_(0), a_(0) { }
        Color(const value_type &f) :a_(f),r_(f), g_(f), b_(f) { }
        Color(int f) :a_(f),r_(f), g_(f), b_(f) { }