Permalink
Browse files

extrras/gui/CheckListBox: Fixed NotifyChanged to give proper 'row' fo…

…r hierarchy
  • Loading branch information...
1 parent cf8f125 commit 37df162a241c5247bb7a17155bc3d496509c6766 @jerstlouis jerstlouis committed Aug 24, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 extras/gui/controls/CheckListBox.ec
View
9 extras/gui/controls/CheckListBox.ec
@@ -238,13 +238,14 @@ class CheckListBox : ListBox
}
else
{
+ DataRow rr = row;
UncheckBoxes(row);
parent = row.parent;
- while(row)
+ while(rr)
{
Iterator<DataRow> it { rowChecks };
- if(it.Find(row))
+ if(it.Find(rr))
{
it.Remove();
break;
@@ -254,10 +255,10 @@ class CheckListBox : ListBox
DataRow r;
for(r = row.parent.firstRow; r; r = r.next)
{
- if(r != row)
+ if(r != rr)
rowChecks.Add(r);
}
- row = row.parent;
+ rr = rr.parent;
}
}

0 comments on commit 37df162

Please sign in to comment.