Fix last_visible_item() to check parents (#1012)

This commit is contained in:
Greg Ercolano 2024-07-17 10:19:29 -07:00
parent 325004fb33
commit 741d58757b

View File

@ -1228,7 +1228,7 @@ Fl_Tree_Item* Fl_Tree::last_visible() {
Fl_Tree_Item* Fl_Tree::last_visible_item() { Fl_Tree_Item* Fl_Tree::last_visible_item() {
Fl_Tree_Item *item = last(); Fl_Tree_Item *item = last();
while ( item ) { while ( item ) {
if ( item->visible() ) { if ( item->visible_r() ) {
if ( item == _root && !showroot() ) { if ( item == _root && !showroot() ) {
return(0); return(0);
} else { } else {