summaryrefslogtreecommitdiff
path: root/src/Fl_Tree_Item.cxx
diff options
context:
space:
mode:
authorGreg Ercolano <erco@seriss.com>2024-07-17 10:20:39 -0700
committerGreg Ercolano <erco@seriss.com>2024-07-17 10:20:39 -0700
commitf950b93e9c458bea552cba789c8af36f82231d87 (patch)
treec6faaf3c12a24502809408226270fef85f6c8e60 /src/Fl_Tree_Item.cxx
parent741d58757b0acb3d9052d8a8e72af21a9cefee74 (diff)
Added is_visible_r() for consistency w/is_visible()
Diffstat (limited to 'src/Fl_Tree_Item.cxx')
-rw-r--r--src/Fl_Tree_Item.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Tree_Item.cxx b/src/Fl_Tree_Item.cxx
index 1e75822fa..9f85bcc2b 100644
--- a/src/Fl_Tree_Item.cxx
+++ b/src/Fl_Tree_Item.cxx
@@ -1433,9 +1433,9 @@ Fl_Tree_Item *Fl_Tree_Item::prev_displayed(Fl_Tree_Prefs &prefs) {
/// See if item and all its parents are open() and visible().
/// \returns
/// 1 -- item and its parents are open() and visible()
-/// 0 -- item (or one of its parents) are invisible or close()ed.
+/// 0 -- item or one of its parents are either not visible() or close()ed.
///
-int Fl_Tree_Item::visible_r() const {
+int Fl_Tree_Item::is_visible_r() const {
if ( !visible() ) return(0);
for (const Fl_Tree_Item *p=parent(); p; p=p->parent())// move up through parents
if (!p->visible() || p->is_close()) return(0); // any parent not visible or closed?