reset selected row when clearing CGUITable

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2407 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2009-06-02 02:29:58 +00:00
parent 71ac2ee2f6
commit 2bc2c33188
1 changed files with 2 additions and 0 deletions

View File

@ -353,6 +353,7 @@ void* CGUITable::getCellData(u32 rowIndex, u32 columnIndex ) const
//! clears the list
void CGUITable::clear()
{
Selected = -1;
Rows.clear();
Columns.clear();
@ -368,6 +369,7 @@ void CGUITable::clear()
void CGUITable::clearRows()
{
Selected = -1;
Rows.clear();
if (VerticalScrollBar)