summaryrefslogtreecommitdiff
path: root/basegfx/inc/basegfx/range/basicrange.hxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-12-09 13:22:21 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-12-09 13:22:21 +0000
commit08dd93a4b70962aed0d2b1923b1a73d1d33e0bf3 (patch)
tree71741e6246bc9e4115770a4872a2f01906461feb /basegfx/inc/basegfx/range/basicrange.hxx
parent3a91fde276caa644d90f02da0e102dd4915fc460 (diff)
CWS-TOOLING: integrate CWS canvas06
2008-11-14 18:59:03 +0100 thb r263697 : Reverted fAlpha setup to previous state, as this was bogus as well - code path is apparently not taken for test, but anyway 2008-11-13 21:32:45 +0100 thb r263663 : WaE fix (and a bad bug as well - int color would have overflown) 2008-11-13 16:51:37 +0100 pl r263654 : remove warnings 2008-11-13 09:46:28 +0100 thb r263623 : #i95317# Fixed typo (thx WaE for finding) 2008-11-12 21:25:19 +0100 thb r263617 : #i96047# call update() on hidden sprite shape as well, to force actual hiding 2008-11-12 21:23:31 +0100 thb r263616 : #i95209# Merge from CWS thb11 - revives canvasbitmap unit tests, fixes nasty corner case in x11 salbmp (for 16bpp) 2008-11-12 21:21:46 +0100 thb r263615 : #i95197# Shuffled code to make valgrind quiet during bmp loading 2008-11-12 21:18:06 +0100 thb r263614 : #i93382# Make --disable-moz build work 2008-11-12 21:16:55 +0100 thb r263613 : #i95317# Fixed mis-named traits methods for min and max numbers 2008-11-12 20:59:01 +0100 thb r263612 : #i95317#, #i92902#: migrate CWS canvas06 to SVN.
Diffstat (limited to 'basegfx/inc/basegfx/range/basicrange.hxx')
-rw-r--r--basegfx/inc/basegfx/range/basicrange.hxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/basegfx/inc/basegfx/range/basicrange.hxx b/basegfx/inc/basegfx/range/basicrange.hxx
index e3ac22b7f2c1..a7c402c905c8 100644
--- a/basegfx/inc/basegfx/range/basicrange.hxx
+++ b/basegfx/inc/basegfx/range/basicrange.hxx
@@ -49,8 +49,8 @@ namespace basegfx
typedef Traits TraitsType;
BasicRange() :
- mnMinimum(Traits::initMin()),
- mnMaximum(Traits::initMax())
+ mnMinimum(Traits::maxVal()),
+ mnMaximum(Traits::minVal())
{
}
@@ -68,13 +68,13 @@ namespace basegfx
void reset()
{
- mnMinimum = Traits::initMin();
- mnMaximum = Traits::initMax();
+ mnMinimum = Traits::maxVal();
+ mnMaximum = Traits::minVal();
}
bool isEmpty() const
{
- return Traits::initMin() == mnMinimum;
+ return Traits::maxVal() == mnMinimum;
}
T getMinimum() const { return mnMinimum; }
@@ -271,8 +271,8 @@ namespace basegfx
// some pre-fabricated traits
struct DoubleTraits
{
- static double initMin() { return DBL_MAX; };
- static double initMax() { return DBL_MIN; };
+ static double minVal() { return DBL_MIN; };
+ static double maxVal() { return DBL_MAX; };
static double neutral() { return 0.0; };
typedef double DifferenceType;
@@ -280,8 +280,8 @@ namespace basegfx
struct Int32Traits
{
- static sal_Int32 initMin() { return 0x7FFFFFFFL; };
- static sal_Int32 initMax() { return 0x80000000UL; };
+ static sal_Int32 minVal() { return SAL_MIN_INT32; };
+ static sal_Int32 maxVal() { return SAL_MAX_INT32; };
static sal_Int32 neutral() { return 0L; };
typedef sal_Int64 DifferenceType;