From b5318fd86e61cb9065346a5b959809636ffe5dce Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 26 Sep 2007 22:36:41 +0000 Subject: [PATCH] The line "SR1=SR2=SR3=typename T::value_type();" in ETL/trunk/ETL/_gaussian.h expects the default constructor of the types it supports (which includes Color) to initialise the constructed object. I don't know what other code expects Color objects to be initialised, so let's play safe and initialise all colors for now. git-svn-id: http://svn.voria.com/code@768 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/color.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/synfig/color.h b/synfig-core/trunk/src/synfig/color.h index ad6a81c..d38964c 100644 --- a/synfig-core/trunk/src/synfig/color.h +++ b/synfig-core/trunk/src/synfig/color.h @@ -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) { } -- 2.7.4