diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-11-30 17:13:12 +0100 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2017-12-07 16:03:52 +0100 |
commit | f894af6d67510ade1447197833a36151bd778214 (patch) | |
tree | f16396cf3e3360798871de480814d8d1652844df /sw/source/core/layout/tabfrm.cxx | |
parent | 6285dbda3aa80b0b98ac67f5438d6bab612cdac6 (diff) |
SwFrameBorder: Removed IsInverse() from SwFrame
IsInverse was always false and never set, elliminating it
from SwFrame makes the code cleaner and reduces cases for
SwRectFnSet from 5 to 3, making it also more understandable.
Cleaned up all the code using it, ran all UnitTests, works
well. In question, this single commit can be re-applied.
Change-Id: If077c65a6dacd83de61d259cddbb3cd4c5e25a2f
Diffstat (limited to 'sw/source/core/layout/tabfrm.cxx')
-rw-r--r-- | sw/source/core/layout/tabfrm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 6a4654d7e5e8..0a8dd42e7079 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -4502,7 +4502,7 @@ SwTwips SwRowFrame::ShrinkFrame( SwTwips nDist, bool bTst, bool bInfo ) SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this); aRectFnSet.SetHeight( aFrm, nHeight - nReal ); - if( IsVertical() && !IsVertLR() && !aRectFnSet.IsRev() ) + if( IsVertical() && !IsVertLR() ) { aFrm.Pos().X() += nReal; } @@ -4521,7 +4521,7 @@ SwTwips SwRowFrame::ShrinkFrame( SwTwips nDist, bool bTst, bool bInfo ) SwFrameAreaDefinition::FrameAreaWriteAccess aFrm(*this); aRectFnSet.SetHeight( aFrm, nHeight + nReal ); - if( IsVertical() && !IsVertLR() && !aRectFnSet.IsRev() ) + if( IsVertical() && !IsVertLR() ) { aFrm.Pos().X() -= nReal; } |