changeset 2004:dec39f62be1c

fl_measure expects w to be set
author corvid <corvid@lavabit.com>
date Sun, 08 May 2011 22:58:39 +0000
parents fd842ba40164
children b519799e360d
files src/ui.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ui.cc	Sun May 08 22:50:51 2011 +0000
+++ b/src/ui.cc	Sun May 08 22:58:39 2011 +0000
@@ -200,7 +200,7 @@
    CustProgressBox(int x, int y, int w, int h, const char *l=0) :
       Fl_Box(x,y,w,h,l) { padding = 0; };
    void update_label(const char *lbl) {
-      int w,h;
+      int w = 0, h = 0;
       if (!padding) {
          copy_label("W");
          measure_label(w, h);
@@ -520,7 +520,7 @@
 Fl_Widget *UI::make_filemenu_button()
 {
    Fl_Button *btn;
-   int w,h, padding;
+   int w = 0, h = 0, padding;
 
    FileButton = btn = new Fl_Button(p_xpos,0,0,0,"W");
    btn->labeltype(FL_FREE_LABELTYPE);