Commit 2bc2c331 authored by cutealien's avatar cutealien

reset selected row when clearing CGUITable


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2407 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 71ac2ee2
...@@ -353,6 +353,7 @@ void* CGUITable::getCellData(u32 rowIndex, u32 columnIndex ) const ...@@ -353,6 +353,7 @@ void* CGUITable::getCellData(u32 rowIndex, u32 columnIndex ) const
//! clears the list //! clears the list
void CGUITable::clear() void CGUITable::clear()
{ {
Selected = -1;
Rows.clear(); Rows.clear();
Columns.clear(); Columns.clear();
...@@ -368,6 +369,7 @@ void CGUITable::clear() ...@@ -368,6 +369,7 @@ void CGUITable::clear()
void CGUITable::clearRows() void CGUITable::clearRows()
{ {
Selected = -1;
Rows.clear(); Rows.clear();
if (VerticalScrollBar) if (VerticalScrollBar)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment