From e33955efbf17c428620a3d72baf1b9869e905ffb Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 7 Nov 2009 21:01:08 +0000 Subject: [PATCH] Fixed unintialised member variables. STR #2288 git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_show_colormap.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fl_show_colormap.cxx b/src/fl_show_colormap.cxx index 133f074c3..bccf4e2c8 100644 --- a/src/fl_show_colormap.cxx +++ b/src/fl_show_colormap.cxx @@ -53,7 +53,8 @@ ColorMenu::ColorMenu(Fl_Color oldcol) : Fl_Window(BOXSIZE*8+1+2*BORDER, BOXSIZE*32+1+2*BORDER) { clear_border(); set_modal(); - initial = which = oldcol; + initial = which = previous = oldcol; + done = 0; } void ColorMenu::drawbox(Fl_Color c) {