summaryrefslogtreecommitdiffstats
path: root/svx/source
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2012-11-14 09:39:21 +0000
committerTor Lillqvist <tml@iki.fi>2012-11-14 11:08:28 +0000
commitc2aa763bd762d161eca9c07f1f31885d6bc751f6 (patch)
treef9633262611b49f5aecf4262904773c8674aaec0 /svx/source
parentfdo#55525 import RTF_TRLEFT (diff)
downloadcore-c2aa763bd762d161eca9c07f1f31885d6bc751f6.tar.gz
core-c2aa763bd762d161eca9c07f1f31885d6bc751f6.zip
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> Reviewed-on: https://gerrit.libreoffice.org/1055 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/tbxctrls/verttexttbxctrl.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/svx/source/tbxctrls/verttexttbxctrl.cxx b/svx/source/tbxctrls/verttexttbxctrl.cxx
index f70daf29c69b..d6f6da2d8d43 100644
--- a/svx/source/tbxctrls/verttexttbxctrl.cxx
+++ b/svx/source/tbxctrls/verttexttbxctrl.cxx
@@ -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;
}