diff options
Diffstat (limited to 'vcl/backendtest/VisualBackendTest.cxx')
-rw-r--r-- | vcl/backendtest/VisualBackendTest.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/backendtest/VisualBackendTest.cxx b/vcl/backendtest/VisualBackendTest.cxx index 02623767cf94..ad72868545a5 100644 --- a/vcl/backendtest/VisualBackendTest.cxx +++ b/vcl/backendtest/VisualBackendTest.cxx @@ -72,7 +72,7 @@ void drawBitmapScaledAndCentered(tools::Rectangle const & rRect, Bitmap aBitmap, Size aBitmapSize(aBitmap.GetSizePixel()); - double fWidthHeight = nWidth > nHeight ? nHeight : nWidth; + double fWidthHeight = std::min(nWidth, nHeight); double fScale = fWidthHeight / aBitmapSize.Width(); aBitmap.Scale(fScale, fScale, aFlag); |