diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-20 15:38:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-21 12:33:04 +0100 |
commit | c6202b2cdacbed5821c8eeec026e9c7d8f69c00e (patch) | |
tree | 55ccebff30f3038128777ef0d888e43fdd84f4be /sw | |
parent | 0330a03e41610b6298c3f588180783f86e730b0b (diff) |
fix bug in SwFEShell::SetColRowWidthHeight
which has been there ever since
commit 84a3db80b4fd66c6854b3135b5f69b61fd828e62
Date: Mon Sep 18 23:08:29 2000 +0000
initial import
since ColLeft==0, the expression "eType & ColLeft" would always evaluate
to false.
Change-Id: Iab9e96e29b37242ff814f9cd3a7dcf38ac77a223
Reviewed-on: https://gerrit.libreoffice.org/51644
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/frmedt/fetab.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/frmedt/fetab.cxx b/sw/source/core/frmedt/fetab.cxx index 645c353d3fef..4f4f64453f93 100644 --- a/sw/source/core/frmedt/fetab.cxx +++ b/sw/source/core/frmedt/fetab.cxx @@ -2192,8 +2192,9 @@ void SwFEShell::SetColRowWidthHeight( TableChgWidthHeightType eType, sal_uInt16 const SwFormatFrameSize& rTableFrameSz = pTab->GetFormat()->GetFrameSize(); SwRectFnSet aRectFnSet(pTab); long nPrtWidth = aRectFnSet.GetWidth(pTab->getFramePrintArea()); + TableChgWidthHeightType eTypePos = extractPosition(eType); if( TableChgMode::VarWidthChangeAbs == pTab->GetTable()->GetTableChgMode() && - ( eType & TableChgWidthHeightType::ColLeft || eType & TableChgWidthHeightType::ColRight ) && + ( eTypePos == TableChgWidthHeightType::ColLeft || eTypePos == TableChgWidthHeightType::ColRight ) && text::HoriOrientation::NONE == pTab->GetFormat()->GetHoriOrient().GetHoriOrient() && nPrtWidth != rTableFrameSz.GetWidth() ) { @@ -2209,7 +2210,7 @@ void SwFEShell::SetColRowWidthHeight( TableChgWidthHeightType eType, sal_uInt16 // we must move the cursor outside the current cell before // deleting the cells. - switch( extractPosition(eType) ) + switch( eTypePos ) { case TableChgWidthHeightType::RowTop: lcl_GoTableRow( this, true ); |