diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-03-26 01:16:41 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2003-03-26 01:16:41 +0000 |
| commit | 216453a981b2012a7517597efa1a5ffd8f780645 (patch) | |
| tree | ac0d2b48a7db8dd7f73130c16b2f8596752bd054 /fluid/Fl_Widget_Type.cxx | |
| parent | 52f7cb86a0aea36cac1e63f2681bed6d8c8d1a52 (diff) | |
Fix widget callback code error check and assignment.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2953 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid/Fl_Widget_Type.cxx')
| -rw-r--r-- | fluid/Fl_Widget_Type.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fluid/Fl_Widget_Type.cxx b/fluid/Fl_Widget_Type.cxx index 88a530fa3..75f49e3e3 100644 --- a/fluid/Fl_Widget_Type.cxx +++ b/fluid/Fl_Widget_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.22 2002/11/05 06:45:40 matthiaswm Exp $" +// "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.23 2003/03/26 01:16:36 easysw Exp $" // // Widget type code for the Fast Light Tool Kit (FLTK). // @@ -948,7 +948,11 @@ void callback_cb(Fl_Text_Editor* i, void *v) { } else { char *c = i->buffer()->text(); const char *d = c_check(c); - if (d) {fl_message("Error in callback: %s",d); haderror = 1; return;} + if (d) { + fl_message("Error in callback: %s",d); + if (i->window()) i->window()->make_current(); + haderror = 1; + } for (Fl_Type *o = Fl_Type::first; o; o = o->next) if (o->selected) { o->callback(c); } @@ -1972,5 +1976,5 @@ int Fl_Widget_Type::read_fdesign(const char* propname, const char* value) { } // -// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.22 2002/11/05 06:45:40 matthiaswm Exp $". +// End of "$Id: Fl_Widget_Type.cxx,v 1.15.2.16.2.23 2003/03/26 01:16:36 easysw Exp $". // |
