summaryrefslogtreecommitdiff
path: root/svx/source/gallery2/galobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/gallery2/galobj.cxx')
-rw-r--r--svx/source/gallery2/galobj.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/gallery2/galobj.cxx b/svx/source/gallery2/galobj.cxx
index 6ef09c95adbe..763790a15e48 100644
--- a/svx/source/gallery2/galobj.cxx
+++ b/svx/source/gallery2/galobj.cxx
@@ -98,8 +98,8 @@ sal_Bool SgaObject::CreateThumb( const Graphic& rGraphic )
else
{
const float fFactor = (float) aBmpSize.Width() / aBmpSize.Height();
- const Size aNewSize( Max( (long) (fFactor < 1. ? S_THUMB * fFactor : S_THUMB), 8L ),
- Max( (long) (fFactor < 1. ? S_THUMB : S_THUMB / fFactor), 8L ) );
+ const Size aNewSize( std::max( (long) (fFactor < 1. ? S_THUMB * fFactor : S_THUMB), 8L ),
+ std::max( (long) (fFactor < 1. ? S_THUMB : S_THUMB / fFactor), 8L ) );
if( aThumbBmp.Scale( (double) aNewSize.Width() / aBmpSize.Width(),
(double) aNewSize.Height() / aBmpSize.Height(), BMP_SCALE_BEST ) )