diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2022-01-13 16:09:24 +0100 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2022-02-05 09:54:59 +0100 |
commit | 604ea1bfe06a8a19b084b5a6a603d8c1ba041f0a (patch) | |
tree | 5fef31e4a747d17400227b547deac6ecba5a07da /sfx2/source/view | |
parent | b63a080c0c1dc9c3f2fc82e03d97d45d91dd7d16 (diff) |
Fix ambiguous error in VS
Change-Id: If18ef06f5a27a4266b21df4ba07bd5bc01255f55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128381
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit af168ae749dfd816fe029bbca5967fc3d5a1aa81)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129439
Tested-by: Jenkins
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sfx2/source/view')
-rw-r--r-- | sfx2/source/view/ipclient.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx index 73fe6f241bae..92b763327ea9 100644 --- a/sfx2/source/view/ipclient.cxx +++ b/sfx2/source/view/ipclient.cxx @@ -94,9 +94,9 @@ public: tools::Rectangle lcl_negateRectX(const tools::Rectangle& rRect) { return tools::Rectangle( - std::max(0l, -rRect.Right()), + std::max(static_cast<tools::Long>(0l), -rRect.Right()), rRect.Top(), - std::max(0l, -rRect.Left()), + std::max(static_cast<tools::Long>(0l), -rRect.Left()), rRect.Bottom()); } |