From 562198fa3131684e7911ce8c8b0082bbbc617671 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 21 Mar 2005 11:38:52 +0000 Subject: Polygon drawing fixed #765, fl_message wrapped in Fl_Group::current(0), so it doesn't end up inside some current group #253. Undefined 'check' in Fl_Menu_Item_, so it will compile as an Apple XCode project (to be delivered later).. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4154 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_ask.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fl_ask.cxx') diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx index 5e75fab42..016b52495 100644 --- a/src/fl_ask.cxx +++ b/src/fl_ask.cxx @@ -59,6 +59,11 @@ static Fl_Window *makeform() { message_form->size(410,103); return message_form; } + // make sure that the dialog does not become the child of some + // current group + Fl_Group *previously_current_group = Fl_Group::current(); + Fl_Group::current(0); + // create a new top level window Fl_Window *w = message_form = new Fl_Window(410,103,""); // w->clear_border(); // w->box(FL_UP_BOX); @@ -82,6 +87,7 @@ static Fl_Window *makeform() { w->resizable(new Fl_Box(60,10,110-60,27)); w->end(); w->set_modal(); + Fl_Group::current(previously_current_group); return w; } -- cgit v1.2.3