summaryrefslogtreecommitdiff
path: root/sd/source/ui/docshell/sdclient.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/docshell/sdclient.cxx')
-rw-r--r--sd/source/ui/docshell/sdclient.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/docshell/sdclient.cxx b/sd/source/ui/docshell/sdclient.cxx
index 192c1cd5d754..abda2f4eb764 100644
--- a/sd/source/ui/docshell/sdclient.cxx
+++ b/sd/source/ui/docshell/sdclient.cxx
@@ -93,10 +93,10 @@ void Client::RequestNewObjectArea( Rectangle& aObjRect )
Point aWorkAreaTL = aWorkArea.TopLeft();
Point aWorkAreaBR = aWorkArea.BottomRight();
- aPos.X() = Max(aPos.X(), aWorkAreaTL.X());
- aPos.X() = Min(aPos.X(), aWorkAreaBR.X()-aSize.Width());
- aPos.Y() = Max(aPos.Y(), aWorkAreaTL.Y());
- aPos.Y() = Min(aPos.Y(), aWorkAreaBR.Y()-aSize.Height());
+ aPos.X() = std::max(aPos.X(), aWorkAreaTL.X());
+ aPos.X() = std::min(aPos.X(), aWorkAreaBR.X()-aSize.Width());
+ aPos.Y() = std::max(aPos.Y(), aWorkAreaTL.Y());
+ aPos.Y() = std::min(aPos.Y(), aWorkAreaBR.Y()-aSize.Height());
aObjRect.SetPos(aPos);
}