diff options
| author | Greg Ercolano <erco@seriss.com> | 2012-04-10 19:16:44 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2012-04-10 19:16:44 +0000 |
| commit | 6444e23359ed0d447f3495e2bebbcffbcd91d8e8 (patch) | |
| tree | 42bc916e21cd80b65c46180062c24e03b8d3be0b /src | |
| parent | dfe7fafd929de661ae1d34d43d66062ca6ae3845 (diff) | |
fixes to build on IRIX.
(scoping rules for variables declared within for() loops)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9337 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_ask.cxx | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx index 877c17641..22b8f90e0 100644 --- a/src/fl_ask.cxx +++ b/src/fl_ask.cxx @@ -92,18 +92,22 @@ static Fl_Window *makeform() { } 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(); |
