diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-04-18 20:57:27 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-04-18 21:07:02 +0200 |
commit | fa632a57b7fcbc0a790fc6615174f25b7f640713 (patch) | |
tree | c6cf42ec735618286a3cbdc55e6fe72337a177d1 /include/tools/gen.hxx | |
parent | 9ea483e8a90ad377a7e1146647da3466a78c4c18 (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/tools/gen.hxx')
-rw-r--r-- | include/tools/gen.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx index 6007f126a8d3..c1cffcbe6ccc 100644 --- a/include/tools/gen.hxx +++ b/include/tools/gen.hxx @@ -356,6 +356,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 { |