Fix last_visible_item() to check parents (#1012)
This commit is contained in:
parent
325004fb33
commit
741d58757b
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user