summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-04-18 20:57:27 +0200
committerAndras Timar <andras.timar@collabora.com>2014-04-22 21:44:42 +0200
commita88fda247ac70828d1304261db56cfeab6d1ccd1 (patch)
treebf73dbd5d31b21cd719f5b463487259b45302353 /include
parentd6e66af53ccbb6e15925a14c9283a8ada92ebc5f (diff)
fdo#77088 WMF - replace 32-bit min/max assumption with const
Added RECT_MIN and RECT_MAX which represent the minimum and maximum value a Rectangle object can hold. In WMF we used a 32-bit assumption what the min and max value could be (0x7fffffff, 0x80000000) which causes problems on 64-bit systems. Change-Id: Ic62daebbc2708cdeb7b0cf7b694bd9940eb98313
Diffstat (limited to 'include')
-rw-r--r--include/tools/gen.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx
index 39860582cfbe..bba8bae41320 100644
--- a/include/tools/gen.hxx
+++ b/include/tools/gen.hxx
@@ -355,6 +355,8 @@ inline std::basic_ostream<charT, traits> & operator <<(
// Rectangle
#define RECT_EMPTY ((short)-32767)
+#define RECT_MAX LONG_MAX
+#define RECT_MIN LONG_MIN
class TOOLS_DLLPUBLIC SAL_WARN_UNUSED Rectangle
{