svx/source/tbxctrls/verttexttbxctrl.cxx |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

New commits:
commit 5db100f83ca595ceadf85db7963e5dc42f614027
Author: Noel Power <noel.po...@suse.com>
Date:   Wed Nov 14 09:39:21 2012 +0000

    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.po...@suse.com>
    Tested-by: Noel Power <noel.po...@suse.com>

diff --git a/svx/source/tbxctrls/verttexttbxctrl.cxx 
b/svx/source/tbxctrls/verttexttbxctrl.cxx
index f70daf2..d6f6da2 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;
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to