summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
Diffstat (limited to 'fluid')
-rw-r--r--fluid/align_widget.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/fluid/align_widget.cxx b/fluid/align_widget.cxx
index dff5c2e16..6f90424e5 100644
--- a/fluid/align_widget.cxx
+++ b/fluid/align_widget.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: align_widget.cxx,v 1.1.2.3 2003/08/02 21:17:30 easysw Exp $"
+// "$Id: align_widget.cxx,v 1.1.2.4 2004/04/06 02:47:25 easysw Exp $"
//
// alignment code for the Fast Light Tool Kit (FLTK).
//
@@ -59,7 +59,7 @@ void align_widget_cb(Fl_Widget*, long how)
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
w->resize(left, w->y(), w->w(), w->h());
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
}
break;
case 11: // align h.center
@@ -83,7 +83,7 @@ void align_widget_cb(Fl_Widget*, long how)
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
w->resize((center2-w->w())/2, w->y(), w->w(), w->h());
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
}
}
break;
@@ -104,7 +104,7 @@ void align_widget_cb(Fl_Widget*, long how)
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
w->resize(right-w->w(), w->y(), w->w(), w->h());
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
}
break;
case 13: // align top
@@ -124,7 +124,7 @@ void align_widget_cb(Fl_Widget*, long how)
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
w->resize(w->x(), top, w->w(), w->h());
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
}
break;
case 14: // align v.center
@@ -148,7 +148,7 @@ void align_widget_cb(Fl_Widget*, long how)
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
w->resize(w->x(), (center2-w->h())/2, w->w(), w->h());
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
}
}
break;
@@ -169,7 +169,7 @@ void align_widget_cb(Fl_Widget*, long how)
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
w->resize( w->x(), bot-w->h(), w->w(), w->h());
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
}
break;
//---- space evently
@@ -197,7 +197,7 @@ void align_widget_cb(Fl_Widget*, long how)
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
w->resize(left+wsum+wdt*cnt/n, w->y(), w->w(), w->h());
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
cnt++;
wsum += w->w();
}
@@ -227,7 +227,7 @@ void align_widget_cb(Fl_Widget*, long how)
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
w->resize(w->x(), top+hsum+hgt*cnt/n, w->w(), w->h());
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
cnt++;
hsum += w->h();
}
@@ -251,7 +251,7 @@ void align_widget_cb(Fl_Widget*, long how)
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
w->resize( w->x(), w->y(), wdt, w->h());
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
}
break;
case 31: // same height
@@ -271,7 +271,7 @@ void align_widget_cb(Fl_Widget*, long how)
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
w->resize( w->x(), w->y(), w->w(), hgt);
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
}
break;
case 32: // same size
@@ -293,7 +293,7 @@ void align_widget_cb(Fl_Widget*, long how)
Fl_Widget *w = ((Fl_Widget_Type *)o)->o;
w->resize( w->x(), w->y(), wdt, hgt);
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
}
break;
//---- center in group
@@ -306,7 +306,7 @@ void align_widget_cb(Fl_Widget*, long how)
int center2 = 2*p->x()+p->w();
w->resize((center2-w->w())/2, w->y(), w->w(), w->h());
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
}
break;
case 41: // center vert
@@ -318,7 +318,7 @@ void align_widget_cb(Fl_Widget*, long how)
int center2 = 2*p->y()+p->h();
w->resize(w->x(), (center2-w->h())/2, w->w(), w->h());
w->redraw();
- w->window()->redraw();
+ if (w->window()) w->window()->redraw();
}
break;
}
@@ -326,6 +326,6 @@ void align_widget_cb(Fl_Widget*, long how)
//
-// End of "$Id: align_widget.cxx,v 1.1.2.3 2003/08/02 21:17:30 easysw Exp $".
+// End of "$Id: align_widget.cxx,v 1.1.2.4 2004/04/06 02:47:25 easysw Exp $".
//