summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/text/frmpaint.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/core/text/frmpaint.cxx b/sw/source/core/text/frmpaint.cxx
index 69eb30259dbd..112c1486038c 100644
--- a/sw/source/core/text/frmpaint.cxx
+++ b/sw/source/core/text/frmpaint.cxx
@@ -437,6 +437,14 @@ SwRect SwTxtFrm::Paint()
pRepaint->SetOfst( 0 );
aRet = *pRepaint;
+ // In case our left edge is the same as the body frame's left edge,
+ // then extend the rectangle to include the page margin as well,
+ // otherwise some font will be clipped.
+ SwLayoutFrm* pBodyFrm = GetUpper();
+ if (pBodyFrm->IsBodyFrm() && aRet.Left() == (pBodyFrm->Frm().Left() + pBodyFrm->Prt().Left()))
+ if (SwLayoutFrm* pPageFrm = pBodyFrm->GetUpper())
+ aRet.Left(pPageFrm->Frm().Left());
+
if ( IsRightToLeft() )
SwitchLTRtoRTL( aRet );