summaryrefslogtreecommitdiff
path: root/sw/source/ui/envelp/envlop1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/envelp/envlop1.cxx')
-rw-r--r--sw/source/ui/envelp/envlop1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/envelp/envlop1.cxx b/sw/source/ui/envelp/envlop1.cxx
index 6a9a0b68eed4..29ab6f8bc993 100644
--- a/sw/source/ui/envelp/envlop1.cxx
+++ b/sw/source/ui/envelp/envlop1.cxx
@@ -74,8 +74,8 @@ void SwEnvPreview::Paint(const Rectangle &)
const SwEnvItem& rItem =
((SwEnvDlg*) GetParentDialog())->aEnvItem;
- sal_uInt16 nPageW = (sal_uInt16) Max(rItem.lWidth, rItem.lHeight),
- nPageH = (sal_uInt16) Min(rItem.lWidth, rItem.lHeight);
+ sal_uInt16 nPageW = (sal_uInt16) std::max(rItem.lWidth, rItem.lHeight),
+ nPageH = (sal_uInt16) std::min(rItem.lWidth, rItem.lHeight);
float fx = (float)GetOutputSizePixel().Width () / (float)nPageW,
fy = (float)GetOutputSizePixel().Height() / (float)nPageH,