summaryrefslogtreecommitdiff
path: root/src/Fl_Window_hotspot.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2003-01-28 20:42:14 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2003-01-28 20:42:14 +0000
commit226715d978654145c1a011fe8ebf35431774c33d (patch)
tree5a46c136b94262846b69775f4052d1cc49ffacd2 /src/Fl_Window_hotspot.cxx
parentc25988a756ccc3e01a554840bc9195de5641243f (diff)
Bug fixes from Howard.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2933 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Window_hotspot.cxx')
-rw-r--r--src/Fl_Window_hotspot.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Window_hotspot.cxx b/src/Fl_Window_hotspot.cxx
index 5afcacb3b..12fa6a683 100644
--- a/src/Fl_Window_hotspot.cxx
+++ b/src/Fl_Window_hotspot.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Window_hotspot.cxx,v 1.7.2.3.2.3 2002/04/15 20:30:06 easysw Exp $"
+// "$Id: Fl_Window_hotspot.cxx,v 1.7.2.3.2.4 2003/01/28 20:42:13 easysw Exp $"
//
// Common hotspot routines for the Fast Light Tool Kit (FLTK).
//
@@ -71,7 +71,7 @@ void Fl_Window::hotspot(int X, int Y, int offscreen) {
void Fl_Window::hotspot(const Fl_Widget *o, int offscreen) {
int X = o->w()/2;
int Y = o->h()/2;
- while (o != this) {
+ while (o != this && o) {
X += o->x(); Y += o->y();
o = o->window();
}
@@ -80,5 +80,5 @@ void Fl_Window::hotspot(const Fl_Widget *o, int offscreen) {
//
-// End of "$Id: Fl_Window_hotspot.cxx,v 1.7.2.3.2.3 2002/04/15 20:30:06 easysw Exp $".
+// End of "$Id: Fl_Window_hotspot.cxx,v 1.7.2.3.2.4 2003/01/28 20:42:13 easysw Exp $".
//