sc/source/ui/view/viewdata.cxx |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit c5ab758bc3e1227e9ab3013d2fba4c2cd387e296
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sun Jan 30 14:47:21 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Jan 30 20:18:19 2022 +0100

    cid#1497923 Logically dead code
    
    and
    
    cid#1497924 Logically dead code
    
    Change-Id: I548c09b2394e263d88a48fe97490f5b63d7d693a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129171
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 6f51cd24037d..539013b79372 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -1933,8 +1933,8 @@ void ScViewData::EditGrowX()
             aArea.AdjustRight((bLayoutRTL && !bLOKActive) ? nLogicLeft : 
nLogicRight );
             if (bLOKPrintTwips)
             {
-                aAreaPTwips.AdjustLeft( -((bLayoutRTL && !bLOKActive) ? 
nLogicRightPTwips : nLogicLeftPTwips) );
-                aAreaPTwips.AdjustRight((bLayoutRTL && !bLOKActive) ? 
nLogicLeftPTwips : nLogicRightPTwips );
+                aAreaPTwips.AdjustLeft(-nLogicLeftPTwips);
+                aAreaPTwips.AdjustRight(nLogicRightPTwips);
             }
 
             if ( aArea.Right() > aArea.Left() + aSize.Width() - 1 )
@@ -2012,8 +2012,6 @@ void ScViewData::EditGrowX()
             if ( bLayoutRTL && !bLOKActive )
             {
                 aArea.AdjustLeft( -nLogicWidth );
-                if (bLOKPrintTwips)
-                    aAreaPTwips.AdjustLeft( -nLogicWidthPTwips );
             }
             else
             {
@@ -2027,8 +2025,6 @@ void ScViewData::EditGrowX()
                 if ( bLayoutRTL && !bLOKActive )
                 {
                     aArea.SetLeft( aArea.Right() - aSize.Width() + 1 );
-                    if (bLOKPrintTwips)
-                        aAreaPTwips.SetLeft( aAreaPTwips.Right() - 
aSizePTwips.Width() + 1 );
                 }
                 else
                 {

Reply via email to