[Libreoffice-commits] core.git: sw/source
Jian Hong Cheng
chengjh at apache.org
Mon Jul 29 04:32:57 PDT 2013
sw/source/core/text/itrform2.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 05bd5b46ea659df95fb6f0c895c090629b541e0f
Author: Jian Hong Cheng <chengjh at apache.org>
Date: Wed Sep 12 05:25:24 2012 +0000
Resolves: #i120864# Text is overlapped by the drawing object...
when open the .doc file
* sw/source/core/text/itrform2.cxx
Core function
Patch by: Jane Kang,<kangjane2012 at gmail.com>
Found by: Yan Ji,<yanji.yj at gmail.com>
Review by: Jian Hong Cheng,<chengjh at apache.org>
(cherry picked from commit 182062bbeb5a5a34d2bc59791b1d20ff565a1bb8)
Change-Id: Iaabb457ade39ef7bfd5b8d07e97c8a98b678a163
diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx
index fcd49c1..4c7f958 100644
--- a/sw/source/core/text/itrform2.cxx
+++ b/sw/source/core/text/itrform2.cxx
@@ -1553,7 +1553,11 @@ xub_StrLen SwTxtFormatter::FormatLine( const xub_StrLen nStartPos )
pCurr->CalcLine( *this, GetInfo() );
CalcRealHeight( GetInfo().IsNewLine() );
- if ( IsFlyInCntBase() && !IsQuick() )
+ //#i120864# For Special case that at the first calculation couldn't get
+ //correct height. And need to recalculate for the right height.
+ SwLinePortion* pPorTmp = pCurr->GetPortion();
+ if ( IsFlyInCntBase() && (!IsQuick() || (pPorTmp && pPorTmp->IsFlyCntPortion() && !pPorTmp->GetPortion() &&
+ pCurr->Height() > pPorTmp->Height())))
{
KSHORT nTmpAscent, nTmpHeight;
CalcAscentAndHeight( nTmpAscent, nTmpHeight );
More information about the Libreoffice-commits
mailing list