allow hiding of rtl or ltr buttons on toolbars when ctl selected fdo#33356

Change-Id: I56ce5da755578e35215aa5ca2d37835dcbffbf7d
Reviewed-on: https://gerrit.libreoffice.org/1054
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
This commit is contained in:
Noel Power
2012-11-14 09:39:21 +00:00
parent aa77b7d426
commit 5db100f83c

View File

@@ -83,16 +83,10 @@ void SvxVertCTLTextTbxCtrl::StateChanged(
return;
}
if(bEnabled)
{
if(!bVisible)
{
GetToolBox().ShowItem( GetId(), sal_True );
bCalc = sal_True;
}
}
else if(bVisible)
if(!bEnabled)
{
// always hide if either IsVerticalTextEnabled or IsCTLFontEnabled
// is false
GetToolBox().HideItem( GetId() );
bCalc = sal_True;
}