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 <m.weghorn@posteo.de>
This commit is contained in:
committed by
Michael Weghorn
parent
eb960d48fe
commit
302b9af295
@@ -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(),"GetTabPos:Invalid Tab");
|
||||
DBG_ASSERT(nTab<mvTabList.size(),"SetTabVisible:Invalid Tab");
|
||||
if( 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(),"GetTabPos:Invalid Tab");
|
||||
DBG_ASSERT(nTab<mvTabList.size(),"GetTabVisible:Invalid Tab");
|
||||
if( nTab >= mvTabList.size() )
|
||||
return false;
|
||||
return true;
|
||||
|
||||
if( SvTreeListBox::m_nTreeFlags & SvTreeFlags::RECALCTABS )
|
||||
SetTabs();
|
||||
|
||||
Reference in New Issue
Block a user