diff options
Diffstat (limited to 'vcl/backendtest/VisualBackendTest.cxx')
-rw-r--r-- | vcl/backendtest/VisualBackendTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx index ad72868545a5..a7126aa5d89b 100644 --- a/vcl/backendtest/VisualBackendTest.cxx +++ b/vcl/backendtest/VisualBackendTest.cxx @@ -59,8 +59,8 @@ void drawBitmapCentered(tools::Rectangle const & rRect, Bitmap aBitmap, vcl::Ren Point aPoint(rRect.TopLeft()); - aPoint.X() += (nWidth - aBitmapSize.Width()) / 2; - aPoint.Y() += (nHeight - aBitmapSize.Height()) / 2; + aPoint.AdjustX((nWidth - aBitmapSize.Width()) / 2 ); + aPoint.AdjustY((nHeight - aBitmapSize.Height()) / 2 ); rRenderContext.DrawBitmap(aPoint, aBitmap); } |