Removed some redundant code in Fl_Group::handle() (STR #669)

src/Fl_Group.cxx:
    - Don't need to check o->contains() twice.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4023 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet
2005-02-06 00:03:00 +00:00
parent 01e47d8f24
commit 0475dc9363
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -1,6 +1,8 @@
CHANGES IN FLTK 1.1.7 CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #648) - Documentation fixes (STR #648)
- Removed some redundant code in Fl_Group::handle() (STR
#669)
- The file chooser didn't always deactivate the OK - The file chooser didn't always deactivate the OK
button when necessary (STR #653) button when necessary (STR #653)
- Image drawing on OSX changed the current drawing - Image drawing on OSX changed the current drawing
+3 -3
View File
@@ -1,5 +1,5 @@
// //
// "$Id: Fl_Group.cxx,v 1.8.2.8.2.26 2004/12/03 03:14:16 easysw Exp $" // "$Id$"
// //
// Group widget for the Fast Light Tool Kit (FLTK). // Group widget for the Fast Light Tool Kit (FLTK).
// //
@@ -162,7 +162,7 @@ int Fl_Group::handle(int event) {
if (o->contains(Fl::belowmouse())) { if (o->contains(Fl::belowmouse())) {
return send(o,FL_MOVE); return send(o,FL_MOVE);
} else { } else {
if (!o->contains(Fl::belowmouse())) Fl::belowmouse(o); Fl::belowmouse(o);
if (send(o,FL_ENTER)) return 1; if (send(o,FL_ENTER)) return 1;
} }
} }
@@ -593,5 +593,5 @@ void Fl_Group::draw_outside_label(const Fl_Widget& widget) const {
} }
// //
// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.26 2004/12/03 03:14:16 easysw Exp $". // End of "$Id$".
// //