diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-20 11:16:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-20 11:39:48 +0100 |
commit | 4523a21c6bcf8d57ce90cf074e5b088b6e829e68 (patch) | |
tree | a938c9934bb487ab86ecd44ad7aee04f16bf6be1 | |
parent | 992a477840506c73495cabcebc9febd0cc9fe1c5 (diff) |
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@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sw/source/core/frmedt/fetab.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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())); |