Commit 6e950fca authored by Emmanuel Puig's avatar Emmanuel Puig

* Fixing Parkinson disease bug (it's not funny, it's real life)
parent 73fcd93a
......@@ -2,7 +2,7 @@
* theme.cpp: Theme class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: theme.cpp,v 1.3 2003/03/19 18:14:48 karibu Exp $
* $Id: theme.cpp,v 1.4 2003/03/21 00:00:19 karibu Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
......@@ -358,7 +358,11 @@ void Theme::HangToAnchors( Window *wnd, int &x, int &y, bool init )
{
// If parent hang child and child is not still in list
if( !(*win_anchor)->IsInList( (*wnd_anchor) ) )
{
if( init )
msg_Err( p_intf, "Add" );
(*win_anchor)->Add( (*wnd_anchor) );
}
// Move window to stick anchor
(*wnd_anchor)->GetPos( wnd_anchor_x, wnd_anchor_y );
......@@ -398,6 +402,7 @@ void Theme::CheckAnchors()
{
(*win)->GetPos( x, y );
HangToAnchors( (*win), x, y, true );
(*win)->Move( x, y );
}
}
//---------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment