summaryrefslogtreecommitdiff
path: root/tools/inc
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2007-04-25 14:21:13 +0000
committerRüdiger Timm <rt@openoffice.org>2007-04-25 14:21:13 +0000
commit5af07839e961d8ed2605d428cc99f4d763e3f80d (patch)
treeff84f9c050fcf78b19f1b0e8925f181f95a29650 /tools/inc
parentad1f840daec2b7352e48937143f981233b923359 (diff)
INTEGRATION: CWS sixtyfour11 (1.4.180); FILE MERGED
2007/02/27 10:11:59 kendy 1.4.180.2: #i74885# include <limits.h> 2007/02/26 19:53:43 kendy 1.4.180.1: #i74885# Fix selections to work like on 32bit.
Diffstat (limited to 'tools/inc')
-rw-r--r--tools/inc/tools/gen.hxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/inc/tools/gen.hxx b/tools/inc/tools/gen.hxx
index 78bcb7b96c54..aa340bc33689 100644
--- a/tools/inc/tools/gen.hxx
+++ b/tools/inc/tools/gen.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: gen.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: vg $ $Date: 2007-04-11 20:11:44 $
+ * last change: $Author: rt $ $Date: 2007-04-25 15:21:13 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -43,6 +43,8 @@
#include <tools/solar.h>
#endif
+#include <limits.h>
+
class SvStream;
// --------
@@ -254,8 +256,8 @@ inline Size::Size( long nWidth, long nHeight ) :
// - Range -
// ---------
-#define RANGE_MIN ((long)0x80000000L)
-#define RANGE_MAX 0x7FFFFFFFL
+#define RANGE_MIN LONG_MIN
+#define RANGE_MAX LONG_MAX
class Range : public Pair
{
@@ -302,8 +304,8 @@ inline void Range::Justify()
// - Selection -
// -------------
-#define SELECTION_MIN ((long)0x80000000L)
-#define SELECTION_MAX 0x7FFFFFFFL
+#define SELECTION_MIN LONG_MIN
+#define SELECTION_MAX LONG_MAX
class Selection : public Pair
{