[Libreoffice-commits] core.git: sc/source

Julien Nabet serval2412 at yahoo.fr
Tue Aug 4 02:07:34 PDT 2015


 sc/source/ui/view/viewdata.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 8c0e06fafefdf3a0d1eff8766737b0c845d3ca48
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Aug 2 09:31:06 2015 +0200

    cppcheck: Variable 'bGrowBackwards' is assigned a value that is never used
    
    See https://gerrit.libreoffice.org/#/c/16960/ for details
    
    Change-Id: I04afed2268bb874dfdd30a5df69b17ba3103aaa7
    Reviewed-on: https://gerrit.libreoffice.org/17471
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 5569d0c..18857ae0 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -996,11 +996,8 @@ void ScViewData::SetEditEngine( ScSplitPos eWhich,
         //  (existing or started) with default alignment extend to the right.
         bool bGrowCentered = ( eJust == SVX_HOR_JUSTIFY_CENTER );
         bool bGrowToLeft = ( eJust == SVX_HOR_JUSTIFY_RIGHT );      // visual left
-        bool bGrowBackwards = bGrowToLeft;                          // logical left
-        if ( bLayoutRTL )
-            bGrowBackwards = !bGrowBackwards;                       // invert on RTL sheet
         if ( bAsianVertical )
-            bGrowCentered = bGrowToLeft = bGrowBackwards = false;   // keep old behavior for asian mode
+            bGrowCentered = bGrowToLeft = false;   // keep old behavior for asian mode
 
         long nSizeXPix;
         if (bBreak && !bAsianVertical)


More information about the Libreoffice-commits mailing list