DropGrid: Fixed crashing on drop down

git-svn-id: svn://ultimatepp.org/upp/trunk@3803 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
unodgs 2011-08-30 17:01:17 +00:00
parent ff8e54762d
commit c3d35782a9

View file

@ -833,8 +833,12 @@ void DropGrid::Change(int dir)
void DropGrid::SearchCursor()
{
if(!list.IsCursor())
return;
if(trowid < -1)
trowid = rowid;
value = list.Get(value_col);
rowid = list.GetRowId();
Refresh();