[Wavelet-commit] Wavelet/WImage ColorBuffer.hh,1.7,1.8
Status: Beta
Brought to you by:
herbert
From: Herbert M. D. <he...@us...> - 2009-04-13 02:15:39
|
Update of /cvsroot/wavelet/Wavelet/WImage In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv15459/WImage Modified Files: ColorBuffer.hh Log Message: Fixed critical bug in ColorImage, ColorVideo, ColorBuffer: the size (rows * cols) was not always initialised properly, this could lead to crashes in some cases. Index: ColorBuffer.hh =================================================================== RCS file: /cvsroot/wavelet/Wavelet/WImage/ColorBuffer.hh,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ColorBuffer.hh 7 Aug 2007 17:01:00 -0000 1.7 --- ColorBuffer.hh 13 Apr 2009 01:35:47 -0000 1.8 *************** *** 24,32 **** public: /** Constructor. Creates objects and sets actual start values. * @param colors * the number of colors, and therefore the array's length * @param cmodel * the color model */ ! ColorBuffer (int colors = 3, clrmodel cmodel = cm_rgb); /** Destructor. Frees allocated objects. */ --- 24,34 ---- public: /** Constructor. Creates objects and sets actual start values. + * @param xysize + * the overall size of each channel (rows * cols) * @param colors * the number of colors, and therefore the array's length * @param cmodel * the color model */ ! ColorBuffer (int xysize, int colors = 3, clrmodel cmodel = cm_rgb); /** Destructor. Frees allocated objects. */ |