[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - sw/source
Justin Luth
justin_luth at sil.org
Sat Dec 17 15:13:31 UTC 2016
sw/source/core/layout/frmtool.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 7382c06de7a2c78055279e1a1e7c377f490cccd1
Author: Justin Luth <justin_luth at sil.org>
Date: Sat Dec 17 09:11:25 2016 +0300
tdf#104613 fix logic error in code replacement: CalcLineSpace
since m_bBorderDist is currently always true, this will not have
any real impact, but it should be ,m_bBorderDist instead of ,true.
Fixes commit 5d9d0f3c979732ade57b9c4c4960dd030ffdc9f9
there is a function for that: CalcLineSpace(xx, bEvenIfNoLine)
Change-Id: Iee4b2e5b112be02573c71ed583ffa8c91457689a
Reviewed-on: https://gerrit.libreoffice.org/32112
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Justin Luth <justin_luth at sil.org>
Reviewed-on: https://gerrit.libreoffice.org/32117
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index 6c47053..09ffe34 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -1955,28 +1955,28 @@ long SwBorderAttrs::CalcLeft( const SwFrame *pCaller ) const
void SwBorderAttrs::CalcTopLine_()
{
- m_nTopLine = m_rBox.CalcLineSpace( SvxBoxItemLine::TOP, /*bEvenIfNoLine*/true );
+ m_nTopLine = m_rBox.CalcLineSpace( SvxBoxItemLine::TOP, /*bEvenIfNoLine*/m_bBorderDist );
m_nTopLine = m_nTopLine + m_rShadow.CalcShadowSpace(SvxShadowItemSide::TOP);
m_bTopLine = false;
}
void SwBorderAttrs::CalcBottomLine_()
{
- m_nBottomLine = m_rBox.CalcLineSpace( SvxBoxItemLine::BOTTOM, true );
+ m_nBottomLine = m_rBox.CalcLineSpace( SvxBoxItemLine::BOTTOM, m_bBorderDist );
m_nBottomLine = m_nBottomLine + m_rShadow.CalcShadowSpace(SvxShadowItemSide::BOTTOM);
m_bBottomLine = false;
}
void SwBorderAttrs::CalcLeftLine_()
{
- m_nLeftLine = m_rBox.CalcLineSpace( SvxBoxItemLine::LEFT, true );
+ m_nLeftLine = m_rBox.CalcLineSpace( SvxBoxItemLine::LEFT, m_bBorderDist );
m_nLeftLine = m_nLeftLine + m_rShadow.CalcShadowSpace(SvxShadowItemSide::LEFT);
m_bLeftLine = false;
}
void SwBorderAttrs::CalcRightLine_()
{
- m_nRightLine = m_rBox.CalcLineSpace(SvxBoxItemLine::RIGHT, true );
+ m_nRightLine = m_rBox.CalcLineSpace( SvxBoxItemLine::RIGHT, m_bBorderDist );
m_nRightLine = m_nRightLine + m_rShadow.CalcShadowSpace(SvxShadowItemSide::RIGHT);
m_bRightLine = false;
}
More information about the Libreoffice-commits
mailing list