Fix move within custom widget bug (STR #796)

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4265 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2005-04-10 22:32:06 +00:00
parent b8dd32cb0b
commit af500d018d
1 changed files with 1 additions and 1 deletions

View File

@ -721,7 +721,7 @@ void Fl_Type::move_before(Fl_Type* g) {
l->next = g;
if (prev) prev->next = this; else Fl_Type::first = this;
g->prev = l;
if (parent) parent->move_child(this,g);
if (parent && is_widget()) parent->move_child(this,g);
widget_browser->redraw();
}