Fixes a bug pointed out by Paul: layout() did not stored the previous position.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1316 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
a21592f68e
commit
71a39116d4
@ -348,6 +348,7 @@ bool WidgetManager::layout(const WidgetArea POSITION)
|
||||
std::cerr << "WARNING: called layout with WGT_AREA_NONE.\n";
|
||||
return false;
|
||||
}
|
||||
prev_layout_pos = POSITION;
|
||||
|
||||
const int NUM_WIDGETS = m_widgets.size();
|
||||
if( NUM_WIDGETS < 0 ) return true;
|
||||
|
Loading…
Reference in New Issue
Block a user