From fd63910413dc8522cc99526adb7f6bd526c54e92 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Fri, 26 Nov 2004 17:39:52 +0000 Subject: 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 --- basegfx/source/range/b1drange.cxx | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'basegfx/source/range/b1drange.cxx') 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 #endif +#ifndef _BGFX_RANGE_B1IRANGE_HXX +#include +#endif +#ifndef _BGFX_NUMERIC_FTOOLS_HXX +#include +#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 -- cgit v1.2.3