summaryrefslogtreecommitdiff
path: root/test/navigation.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1998-11-12 14:17:48 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1998-11-12 14:17:48 +0000
commit6af4ec1d7c17417c6512613126386daac598105a (patch)
treeb1eb40067ae3572ef356bfc576b7949f7a7f45b9 /test/navigation.cxx
parent35bc9f0bc588fb30d31c03424aca415985c38fad (diff)
Navigation demo has two "i" variables - fix from Hughes Talbot.
git-svn-id: file:///fltk/svn/fltk/trunk@88 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/navigation.cxx')
-rw-r--r--test/navigation.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/navigation.cxx b/test/navigation.cxx
index 25448f43c..285c89ce9 100644
--- a/test/navigation.cxx
+++ b/test/navigation.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: navigation.cxx,v 1.3 1998/10/21 14:21:36 mike Exp $"
+// "$Id: navigation.cxx,v 1.4 1998/11/12 14:17:48 mike Exp $"
//
// Navigation test program for the Fast Light Tool Kit (FLTK).
//
@@ -50,21 +50,21 @@ int main(int argc, char **argv) {
if (h < y) {h = y-h; y-=h;} else {h = h-y;}
if (w < GRID || h < GRID || w < h) continue;
// find where to insert it and see if it intersects something:
- Fl_Widget *i = 0;
+ Fl_Widget *j = 0;
int n; for (n=0; n < window.children(); n++) {
Fl_Widget *o = window.child(n);
if (x<o->x()+o->w() && x+w>o->x() &&
y<o->y()+o->h() && y+h>o->y()) break;
- if (!i && (y < o->y() || y == o->y() && x < o->x())) i = o;
+ if (!j && (y < o->y() || y == o->y() && x < o->x())) j = o;
}
// skip if intersection:
if (n < window.children()) continue;
- window.insert(*(new Fl_Input(x,y,w,h)),i);
+ window.insert(*(new Fl_Input(x,y,w,h)),j);
}
window.show();
return Fl::run();
}
//
-// End of "$Id: navigation.cxx,v 1.3 1998/10/21 14:21:36 mike Exp $".
+// End of "$Id: navigation.cxx,v 1.4 1998/11/12 14:17:48 mike Exp $".
//