comparison finch/libgnt/gnttree.c @ 16585:467698ab6bf0

Fix an odd selection issue when moving up.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 28 Apr 2007 10:07:22 +0000
parents 5187395d6b78
children 3c3fc1432a01 8410511f4dbb
comparison
equal deleted inserted replaced
16584:7c57d294d20b 16585:467698ab6bf0
150 else 150 else
151 return row; 151 return row;
152 152
153 while(row->next) 153 while(row->next)
154 row = row->next; 154 row = row->next;
155 if (!row->collapsed && row->child) 155 return get_last_child(row);
156 row = get_last_child(row->child);
157 return row;
158 } 156 }
159 157
160 static GntTreeRow * 158 static GntTreeRow *
161 get_prev(GntTreeRow *row) 159 get_prev(GntTreeRow *row)
162 { 160 {