summaryrefslogtreecommitdiff
path: root/basegfx/inc/basegfx/range/basicrange.hxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-04-18 08:15:11 +0000
committerOliver Bolte <obo@openoffice.org>2005-04-18 08:15:11 +0000
commit5dbc7485fd5efa6ec9466747d2fa8aa8d749a322 (patch)
tree3f9e4ad76a658d598457d6f6ec620afba2047882 /basegfx/inc/basegfx/range/basicrange.hxx
parentf30446ccb4c4fe8b0156be8543b529f79a7f1b4b (diff)
INTEGRATION: CWS presfixes03 (1.9.12); FILE MERGED
2005/04/14 22:56:43 thb 1.9.12.1: #i47428# After fixing the actual bug, it turned out that _background_ objects vanish, when the characters reach their final position. Reason was the generation of equal rectangles, with only the tiniest roundoff difference between them. And the clipper turned that into one huge 'clip nothing' mess. Fixed by using approximate equal now in b2dmultirange
Diffstat (limited to 'basegfx/inc/basegfx/range/basicrange.hxx')
-rw-r--r--basegfx/inc/basegfx/range/basicrange.hxx22
1 files changed, 20 insertions, 2 deletions
diff --git a/basegfx/inc/basegfx/range/basicrange.hxx b/basegfx/inc/basegfx/range/basicrange.hxx
index 1f8c473eaac9..0f6b98b68a16 100644
--- a/basegfx/inc/basegfx/range/basicrange.hxx
+++ b/basegfx/inc/basegfx/range/basicrange.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: basicrange.hxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: rt $ $Date: 2005-01-28 17:05:27 $
+ * last change: $Author: obo $ $Date: 2005-04-18 09:15:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -70,6 +70,10 @@
#include <float.h>
#endif
+#ifndef _BGFX_NUMERIC_FTOOLS_HXX
+#include <basegfx/numeric/ftools.hxx>
+#endif
+
namespace basegfx
{
@@ -190,6 +194,20 @@ namespace basegfx
mnMaximum = rRange.mnMaximum;
}
+ bool equal(const BasicRange& rRange) const
+ {
+ return (
+ fTools::equal(mnMinimum, rRange.mnMinimum) &&
+ fTools::equal(mnMaximum, rRange.mnMaximum));
+ }
+
+ bool equal(const BasicRange& rRange, const double& rfSmallValue) const
+ {
+ return (
+ fTools::equal(mnMinimum, rRange.mnMinimum, rfSmallValue) &&
+ fTools::equal(mnMaximum, rRange.mnMaximum, rfSmallValue));
+ }
+
void expand(T nValue)
{
if(isEmpty())