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

Noel Grandin noel.grandin at collabora.co.uk
Tue Mar 20 10:40:13 UTC 2018


 sw/source/core/frmedt/fetab.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4523a21c6bcf8d57ce90cf074e5b088b6e829e68
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Tue Mar 20 11:16:00 2018 +0200

    tdf#16083 writer table resize behavior is random
    
    regression from
    
        commit 890d6790715c4c3f3565b476d538643f04dc6936
        convert TableChgWidthHeightType to o3tl::typed_flags
    
    in the process, improve the fix from
    
        commit bfafda5829f75091c9db798f953d617cde688a1f
        tdf#107866 - Changing table column width with Alt+arrow key strokes
    is broken
    
    Change-Id: I8740d2e1b925ad72ac69f87c5a06d30a55afeb72
    Reviewed-on: https://gerrit.libreoffice.org/51625
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx
index e0595f05fe17..645c353d3fef 100644
--- a/sw/source/core/frmedt/fetab.cxx
+++ b/sw/source/core/frmedt/fetab.cxx
@@ -2202,8 +2202,8 @@ void SwFEShell::SetColRowWidthHeight( TableChgWidthHeightType eType, sal_uInt16
         pTab->GetFormat()->SetFormatAttr( aSz );
     }
 
-    if( extractPosition(eType) == TableChgWidthHeightType::ColLeft &&
-        (eType & (TableChgWidthHeightType::BiggerMode | TableChgWidthHeightType::InsertDeleteMode)) )
+    if( (eType & TableChgWidthHeightType::BiggerMode) &&
+        (eType & TableChgWidthHeightType::InsertDeleteMode) )
     {
         nDiff = sal_uInt16(aRectFnSet.GetWidth(pFrame->getFrameArea()));
 


More information about the Libreoffice-commits mailing list