diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2017-09-24 19:27:26 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-09-25 00:04:23 +0200 |
commit | fb60217569b0fb5bc949c58b054da71992fe2582 (patch) | |
tree | 2c14d4643daf039024624bcc6a0b24985b1559f7 /framework | |
parent | a1976555e0ebb9fc1575c2241e8b0878ccb66410 (diff) |
tdf#83320 Hide vertical text commands early
Instead of listing all commands in one big "if", just do
it unconditionally in the shared controller.
Change-Id: Ie415c4551a77ca8e1e29e73c0dabaff1dd13cbcb
Reviewed-on: https://gerrit.libreoffice.org/42715
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/toolbarmanager.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index c5cf1738fdb2..a4525a204264 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -839,11 +839,7 @@ void ToolBarManager::CreateControllers() if (pController) { - if(aCommandURL == ".uno:SwitchXFormsDesignMode" || - aCommandURL == ".uno:ViewDataSourceBrowser" || - aCommandURL == ".uno:ParaLeftToRight" || - aCommandURL == ".uno:ParaRightToLeft" - ) + if (aCommandURL == ".uno:SwitchXFormsDesignMode" || aCommandURL == ".uno:ViewDataSourceBrowser") pController->setFastPropertyValue_NoBroadcast(1, makeAny(true)); } } |