Removed the warning about using a widget column with just one element since sometimes it's necessary.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1335 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
cosmosninja 2007-12-10 02:40:20 +00:00
parent 303e80df47
commit 8a235d6b1a

View File

@ -169,19 +169,6 @@ bool WidgetManager::break_line()
if( LAST_ELEM > 0 )//If there are at least two elements
{
if( m_elems[LAST_ELEM].type == ET_WGT &&
m_elems[LAST_ELEM - 1].type == ET_COLUMN )
{
std::cerr << "WARNING: tried to add a break to end a column " <<
"with 1 widget inside the column, after widget with " <<
"token " << m_widgets[LAST_WGT].token << ".\n";
//Remember that vector::end() returns an iterator _past_ the end,
//which is why we substract 2, not 1, to remove the column.
m_elems.erase(m_elems.end() - 2);
return false;
}
if( m_elems[LAST_ELEM].type == ET_BREAK &&
!is_column_break( LAST_ELEM ))
{