diff --git a/ChangeLog b/ChangeLog index 0e980855a..df9098e99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-12-15 Riccardo Mottola + + * Source/NSOutlineView.m: removed c99-isms + 2009-12-11 Eric Wasylishen * Source/GSThemeTools.m: Correct the destination rect coordinates in diff --git a/Source/NSOutlineView.m b/Source/NSOutlineView.m index eac8c4734..67044f1c0 100644 --- a/Source/NSOutlineView.m +++ b/Source/NSOutlineView.m @@ -1142,10 +1142,13 @@ Also returns the child index relative to this parent. */ for (i = row - 1; i >= 0; i--) { + BOOL foundParent; + BOOL foundSibling; + lvl = [self levelForRow: i]; - BOOL foundParent = (lvl == level - 1); - BOOL foundSibling = (lvl == level); + foundParent = (lvl == level - 1); + foundSibling = (lvl == level); if (foundParent) {