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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user