reset selected row when clearing CGUITable
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2407 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
71ac2ee2f6
commit
2bc2c33188
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue