Author: greg.ercolano
Date: 2012-04-10 12:16:44 -0700 (Tue, 10 Apr 2012)
New Revision: 9337
Log:
fixes to build on IRIX.
(scoping rules for variables declared within for() loops)
Modified:
branches/branch-1.3/src/fl_ask.cxx
Modified: branches/branch-1.3/src/fl_ask.cxx
===================================================================
--- branches/branch-1.3/src/fl_ask.cxx 2012-04-09 20:49:36 UTC (rev 9336)
+++ branches/branch-1.3/src/fl_ask.cxx 2012-04-10 19:16:44 UTC (rev 9337)
@@ -92,18 +92,22 @@
}
w->end(); // don't add the buttons automatically
// create the buttons (right to left)
- for (int b=0, x=310; b<3; b++, x -= 100) {
- if (b==1)
- button[b] = new Fl_Return_Button(x, 70, 90, 23);
- else
- button[b] = new Fl_Button(x, 70, 90, 23);
- button[b]->align(FL_ALIGN_INSIDE|FL_ALIGN_WRAP);
- button[b]->callback(button_cb,(void *)b);
+ {
+ for (int b=0, x=310; b<3; b++, x -= 100) {
+ if (b==1)
+ button[b] = new Fl_Return_Button(x, 70, 90, 23);
+ else
+ button[b] = new Fl_Button(x, 70, 90, 23);
+ button[b]->align(FL_ALIGN_INSIDE|FL_ALIGN_WRAP);
+ button[b]->callback(button_cb,(void *)b);
+ }
}
button[0]->shortcut(FL_Escape);
// add the buttons (left to right)
- for (int b=2; b>=0; b--)
- w->add(button[b]);
+ {
+ for (int b=2; b>=0; b--)
+ w->add(button[b]);
+ }
w->begin();
w->resizable(new Fl_Box(60,10,110-60,27));
w->end();
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit