From 53ad646f54f8aa33b86c696c04500fd08ea6f3b6 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sun, 28 Oct 2012 23:23:53 +0100 Subject: Enforce use of accessors on gen.hxx structures Change-Id: Icd1b2937fdeaba6de1877258731f53ddf996002e Reviewed-on: https://gerrit.libreoffice.org/936 Reviewed-by: Michael Stahl Tested-by: Michael Stahl --- vcl/source/gdi/pdfwriter_impl.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'vcl/source/gdi/pdfwriter_impl.cxx') diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 73c349c4ad8c..e93b1119162c 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -8645,10 +8645,10 @@ void PDFWriterImpl::drawStrikeoutChar( const Point& rPos, long nWidth, FontStrik push( PUSH_CLIPREGION ); FontMetric aRefDevFontMetric = m_pReferenceDevice->GetFontMetric(); Rectangle aRect; - aRect.nLeft = rPos.X(); - aRect.nRight = aRect.nLeft+nWidth; - aRect.nBottom = rPos.Y()+aRefDevFontMetric.GetDescent(); - aRect.nTop = rPos.Y()-aRefDevFontMetric.GetAscent(); + aRect.Left() = rPos.X(); + aRect.Right() = aRect.Left()+nWidth; + aRect.Bottom() = rPos.Y()+aRefDevFontMetric.GetDescent(); + aRect.Top() = rPos.Y()-aRefDevFontMetric.GetAscent(); ImplFontEntry* pFontEntry = m_pReferenceDevice->mpFontEntry; if (pFontEntry->mnOrientation) -- cgit