diff --git a/cppcanvas/source/mtfrenderer/mtftools.cxx b/cppcanvas/source/mtfrenderer/mtftools.cxx index 8a0e38376fec..a1c5335a739d 100644 --- a/cppcanvas/source/mtfrenderer/mtftools.cxx +++ b/cppcanvas/source/mtfrenderer/mtftools.cxx @@ -4,9 +4,9 @@ * * $RCSfile: mtftools.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: obo $ $Date: 2006-09-17 12:49:38 $ + * last change: $Author: obo $ $Date: 2006-10-12 14:59:56 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -90,6 +90,10 @@ namespace cppcanvas return ::Size( 0, aMetric.GetIntLeading() + aMetric.GetAscent() ); + default: + ENSURE_AND_THROW( false, + "tools::getBaselineOffset(): Unexpected TextAlign value" ); + // FALLTHROUGH intended (to calm compiler warning - case won't happen) case ALIGN_BASELINE: return ::Size( 0, 0 ); @@ -97,9 +101,6 @@ namespace cppcanvas return ::Size( 0, -aMetric.GetDescent() ); - default: - ENSURE_AND_THROW( false, - "tools::getBaselineOffset(): Unexpected TextAlign value" ); } } diff --git a/cppcanvas/source/mtfrenderer/polypolyaction.cxx b/cppcanvas/source/mtfrenderer/polypolyaction.cxx index 40ca15677708..584a740b24f1 100644 --- a/cppcanvas/source/mtfrenderer/polypolyaction.cxx +++ b/cppcanvas/source/mtfrenderer/polypolyaction.cxx @@ -4,9 +4,9 @@ * * $RCSfile: polypolyaction.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: obo $ $Date: 2006-09-17 12:50:05 $ + * last change: $Author: obo $ $Date: 2006-10-12 15:00:10 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -90,6 +90,7 @@ namespace cppcanvas virtual sal_Int32 getActionCount() const; private: + using Action::render; virtual bool render( uno::Reference< rendering::XCachedPrimitive >& rCachedPrimitive, const ::basegfx::B2DHomMatrix& rTransformation ) const; @@ -282,6 +283,7 @@ namespace cppcanvas virtual sal_Int32 getActionCount() const; private: + using Action::render; virtual bool render( uno::Reference< rendering::XCachedPrimitive >& rCachedPrimitive, const ::basegfx::B2DHomMatrix& rTransformation ) const; @@ -396,6 +398,7 @@ namespace cppcanvas virtual sal_Int32 getActionCount() const; private: + using Action::render; virtual bool render( uno::Reference< rendering::XCachedPrimitive >& rCachedPrimitive, const ::basegfx::B2DHomMatrix& rTransformation ) const;