summaryrefslogtreecommitdiff
path: root/src/fl_ask.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-06-06 14:22:05 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-06-06 14:22:05 +0000
commit16de7b6048bbc01ed0cf3a7bced4c94d10334f7c (patch)
treebca5767bc1aa37cee15bb00fd8302a937eef939f /src/fl_ask.cxx
parenta4cd699340c05a2c9525c1c5deadeee4d786ef24 (diff)
The button width/height arrays were not properly initialized before
calling fl_measure()... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2283 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_ask.cxx')
-rw-r--r--src/fl_ask.cxx13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx
index 4e1a6ab74..87e8b1427 100644
--- a/src/fl_ask.cxx
+++ b/src/fl_ask.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_ask.cxx,v 1.8.2.8.2.8 2002/04/09 09:38:15 easysw Exp $"
+// "$Id: fl_ask.cxx,v 1.8.2.8.2.9 2002/06/06 14:22:05 easysw Exp $"
//
// Standard dialog functions for the Fast Light Tool Kit (FLTK).
//
@@ -108,6 +108,10 @@ void resizeform() {
message_h = 30;
fl_font(button[0]->labelfont(), button[0]->labelsize());
+
+ memset(button_w, 0, sizeof(button_w));
+ memset(button_h, 0, sizeof(button_h));
+
for (max_h = 25, i = 0; i < 3; i ++)
if (button[i]->visible())
{
@@ -122,11 +126,6 @@ void resizeform() {
if (button_h[i] > max_h)
max_h = button_h[i];
}
- else
- {
- button_w[i] = 0;
- button_h[i] = 0;
- }
if (input->visible()) icon_size = message_h + 25;
else icon_size = message_h;
@@ -343,5 +342,5 @@ const char *fl_password(const char *fmt, const char *defstr, ...) {
}
//
-// End of "$Id: fl_ask.cxx,v 1.8.2.8.2.8 2002/04/09 09:38:15 easysw Exp $".
+// End of "$Id: fl_ask.cxx,v 1.8.2.8.2.9 2002/06/06 14:22:05 easysw Exp $".
//