summaryrefslogtreecommitdiff
path: root/test/navigation.cxx
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-10-28 18:10:17 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-10-28 18:10:17 +0000
commit1b6dae10bff9e86977f7293e14d48fb8b619a1c9 (patch)
treeea229cfa2181cc5c4155fd522981c278edaf05d1 /test/navigation.cxx
parent291faee430b13248a1b97e1ef254b9a468a67ad1 (diff)
Removing compiler warnings in test apps
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7766 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/navigation.cxx')
-rw-r--r--test/navigation.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/navigation.cxx b/test/navigation.cxx
index 66a4b7885..eb0959575 100644
--- a/test/navigation.cxx
+++ b/test/navigation.cxx
@@ -57,7 +57,8 @@ int main(int argc, char **argv) {
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 (!j && (y < o->y() || y == o->y() && x < o->x())) j = o;
+ if ( (!j && (y < o->y())
+ || (y == o->y() && x < o->x())) ) j = o;
}
// skip if intersection:
if (n < window.children()) continue;