diff options
author | Matteo Casalin <matteo.casalin@gmx.com> | 2012-10-28 23:23:53 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-11-20 19:32:43 +0000 |
commit | 53ad646f54f8aa33b86c696c04500fd08ea6f3b6 (patch) | |
tree | 3eef1a050a5cf7b8b531f56e125d7252f4aab8fe /vcl/source/gdi/outdev.cxx | |
parent | 5e5c11c664f67ff9fd1120905b09a32bea3b2f6c (diff) |
Enforce use of accessors on gen.hxx structures
Change-Id: Icd1b2937fdeaba6de1877258731f53ddf996002e
Reviewed-on: https://gerrit.libreoffice.org/936
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl/source/gdi/outdev.cxx')
-rw-r--r-- | vcl/source/gdi/outdev.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/gdi/outdev.cxx b/vcl/source/gdi/outdev.cxx index f266bf754c7e..d34cea9f9643 100644 --- a/vcl/source/gdi/outdev.cxx +++ b/vcl/source/gdi/outdev.cxx @@ -530,14 +530,14 @@ void OutputDevice::ImplReMirror( Point &rPoint ) const } void OutputDevice::ImplReMirror( Rectangle &rRect ) const { - long nWidth = rRect.nRight - rRect.nLeft; + long nWidth = rRect.Right() - rRect.Left(); //long lc_x = rRect.nLeft - mnOutOffX; // normalize //lc_x = mnOutWidth - nWidth - 1 - lc_x; // mirror //rRect.nLeft = lc_x + mnOutOffX; // re-normalize - rRect.nLeft = mnOutOffX + mnOutWidth - nWidth - 1 - rRect.nLeft + mnOutOffX; - rRect.nRight = rRect.nLeft + nWidth; + rRect.Left() = mnOutOffX + mnOutWidth - nWidth - 1 - rRect.Left() + mnOutOffX; + rRect.Right() = rRect.Left() + nWidth; } void OutputDevice::ImplReMirror( Region &rRegion ) const { |