Fixes possible crash if the last element of the GUI of a screen is a column.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
95093755b9
commit
2ffb606880
@ -293,8 +293,8 @@ int WidgetManager::calc_width() const
|
|||||||
//Jump to the next line break
|
//Jump to the next line break
|
||||||
while( i < NUM_ELEMS )
|
while( i < NUM_ELEMS )
|
||||||
{
|
{
|
||||||
++i;
|
|
||||||
if( m_elems[i].type == ET_BREAK) break;
|
if( m_elems[i].type == ET_BREAK) break;
|
||||||
|
++i;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -586,8 +586,8 @@ int WidgetManager::calc_line_width( const int START_ELEM ) const
|
|||||||
|
|
||||||
while( i < NUM_ELEMS )
|
while( i < NUM_ELEMS )
|
||||||
{
|
{
|
||||||
++i;
|
|
||||||
if( m_elems[i].type == ET_BREAK ) break;
|
if( m_elems[i].type == ET_BREAK ) break;
|
||||||
|
++i;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user