The line "SR1=SR2=SR3=typename T::value_type();" in ETL/trunk/ETL/_gaussian.h expects...
[synfig.git] / 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) { }