From 302b9af2959588a256fa9a6697fca24b9a600c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Rheinl=C3=A4nder?= Date: Wed, 25 Mar 2026 17:38:04 +0100 Subject: [PATCH] tdf#171439 Fix bug in GetTabVisible() that returned false by default Change-Id: I747c997c69a2c7556875f3dad7c95fb46f17f7fe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/202684 Tested-by: Jenkins Reviewed-by: Michael Weghorn --- vcl/source/treelist/svtabbx.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx index 553adb286c01..a6ea79384add 100644 --- a/vcl/source/treelist/svtabbx.cxx +++ b/vcl/source/treelist/svtabbx.cxx @@ -539,7 +539,7 @@ void SvTabListBox::SetTabEditable(sal_uInt16 nTab, bool bEditable) void SvTabListBox::SetTabVisible(sal_uInt16 nTab, bool bVisible) { - DBG_ASSERT(nTab= mvTabList.size() ) return; @@ -558,9 +558,9 @@ void SvTabListBox::SetTabVisible(sal_uInt16 nTab, bool bVisible) bool SvTabListBox::GetTabVisible(sal_uInt16 nTab) { - DBG_ASSERT(nTab= mvTabList.size() ) - return false; + return true; if( SvTreeListBox::m_nTreeFlags & SvTreeFlags::RECALCTABS ) SetTabs();