summaryrefslogtreecommitdiff
path: root/basegfx/source/range
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-11-26 17:39:52 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-11-26 17:39:52 +0000
commitfd63910413dc8522cc99526adb7f6bd526c54e92 (patch)
tree4dec3d594b189932f822a3984b706bb45d117440 /basegfx/source/range
parentb4d32b790e634f594af193ee4f10dc3e0b7c33a5 (diff)
INTEGRATION: CWS presentationengine01 (1.3.2); FILE MERGED
2004/11/20 00:00:23 thb 1.3.2.2: #110496# After-merge cleanups, finished BxD<->BxI conversions for range and tuples 2004/11/17 20:20:09 thb 1.3.2.1: #110496# Unified integer constructors/fround converters
Diffstat (limited to 'basegfx/source/range')
-rw-r--r--basegfx/source/range/b1drange.cxx22
1 files changed, 20 insertions, 2 deletions
diff --git a/basegfx/source/range/b1drange.cxx b/basegfx/source/range/b1drange.cxx
index faf5c89b7a66..481b27e2056a 100644
--- a/basegfx/source/range/b1drange.cxx
+++ b/basegfx/source/range/b1drange.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b1drange.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: aw $ $Date: 2003-11-28 11:18:11 $
+ * last change: $Author: rt $ $Date: 2004-11-26 18:39:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,9 +62,27 @@
#ifndef _BGFX_RANGE_B1DRANGE_HXX
#include <basegfx/range/b1drange.hxx>
#endif
+#ifndef _BGFX_RANGE_B1IRANGE_HXX
+#include <basegfx/range/b1irange.hxx>
+#endif
+#ifndef _BGFX_NUMERIC_FTOOLS_HXX
+#include <basegfx/numeric/ftools.hxx>
+#endif
namespace basegfx
{
+ B1DRange::B1DRange( const B1IRange& rRange ) :
+ maRange(rRange.getMinimum())
+ {
+ expand(rRange.getMaximum());
+ }
+
+ B1IRange fround(const B1DRange& rRange)
+ {
+ return B1IRange( fround( rRange.getMinimum()),
+ fround( rRange.getMaximum()) );
+ }
+
} // end of namespace basegfx
// eof