summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2018-03-03 19:14:25 +0800
committerMark Hung <marklh9@gmail.com>2018-03-07 11:46:25 +0100
commit5b910af084924e11b9a74002fd53843e88005db4 (patch)
treef8ccde954fc39adbc74b0046acda8e62e320352b
parented031c6ceab99bf3e6b0ea320423d9fa9a734ad5 (diff)
tdf#84522 fix reversed text of column break mark in a RTL page.
Set RTL falg for the font when the frame is right-to-left. Change-Id: I834620ed44b01b9577ca6c7c42191f2400dd8219 Reviewed-on: https://gerrit.libreoffice.org/50673 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
-rw-r--r--sw/source/core/layout/paintfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 61fcc2cd72f2..d9c727202df4 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -3598,7 +3598,7 @@ void SwColumnFrame::PaintBreak( ) const
aFont.SetFontHeight( 8 * 20 );
pOut->SetFont( aFont );
drawinglayer::attribute::FontAttribute aFontAttr = drawinglayer::primitive2d::getFontAttributeFromVclFont(
- aFontSize, aFont, false, false );
+ aFontSize, aFont, IsRightToLeft(), false );
tools::Rectangle aTextRect;
pOut->GetTextBoundRect( aTextRect, aBreakText );