From 1ca59ac83016de9e3191897ff48b80449fcf440f Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 26 May 2004 15:10:29 +0000 Subject: [PATCH] Corrected bug in setgrayshade --- vcg/space/color4.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vcg/space/color4.h b/vcg/space/color4.h index b6a6c2be..68158671 100644 --- a/vcg/space/color4.h +++ b/vcg/space/color4.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.5 2004/05/07 12:46:55 cignoni +added ifdef for gcc [Bug c++/14479] + Revision 1.4 2004/05/07 10:06:55 cignoni Corrected template specialization syntax for gcc compiling @@ -142,12 +145,12 @@ public: inline static Color4 GrayShade(float f) { - return ColorF(f,f,f,1); + return Color4(f,f,f,1); } inline void SetGrayShade(float f) { - *this = ColorF(f,f,f,1); + Import(Color4(f,f,f,1)); }