sfx2/source/view/ipclient.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit af168ae749dfd816fe029bbca5967fc3d5a1aa81
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Thu Jan 13 16:09:24 2022 +0100
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Fri Jan 14 09:49:51 2022 +0100

    Fix ambiguous error in VS
    
    Change-Id: If18ef06f5a27a4266b21df4ba07bd5bc01255f55
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128381
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sfx2/source/view/ipclient.cxx b/sfx2/source/view/ipclient.cxx
index 141e7f954e19..cde5249f0461 100644
--- a/sfx2/source/view/ipclient.cxx
+++ b/sfx2/source/view/ipclient.cxx
@@ -93,9 +93,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());
 }
 

Reply via email to