From 5b910af084924e11b9a74002fd53843e88005db4 Mon Sep 17 00:00:00 2001 From: Mark Hung Date: Sat, 3 Mar 2018 19:14:25 +0800 Subject: 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 Reviewed-by: Mark Hung --- sw/source/core/layout/paintfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- cgit