fixed initVal

This commit is contained in:
Peter Schojer
2008-09-26 10:21:14 +00:00
parent ac3729f73b
commit c60067167f
4 changed files with 14 additions and 7 deletions

View File

@@ -167,7 +167,7 @@ void ListBoxCell::select(const Any& elem)
if (it->second != true)
{
it->second = true;
int idx = it - _data.begin();
int idx = static_cast<int>(it - _data.begin());
rowSelected(this, idx);
}
}
@@ -182,7 +182,7 @@ void ListBoxCell::deselect(const Any& elem)
if (it->second != false)
{
it->second = false;
int idx = it - _data.begin();
int idx = static_cast<int>(it - _data.begin());
rowDeselected(this, idx);
}
}