From c58ad39340a331ca5b77f39530f5267985b53144 Mon Sep 17 00:00:00 2001 From: Armin Weiss Date: Wed, 12 Dec 2007 12:23:40 +0000 Subject: #i39532# clipping changes --- drawinglayer/source/primitive2d/textprimitive2d.cxx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'drawinglayer/source/primitive2d/textprimitive2d.cxx') diff --git a/drawinglayer/source/primitive2d/textprimitive2d.cxx b/drawinglayer/source/primitive2d/textprimitive2d.cxx index 59c9e9281a8f..ac92d4680f88 100644 --- a/drawinglayer/source/primitive2d/textprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/textprimitive2d.cxx @@ -4,9 +4,9 @@ * * $RCSfile: textprimitive2d.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: aw $ $Date: 2007-11-19 10:21:42 $ + * last change: $Author: aw $ $Date: 2007-12-12 13:23:40 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -158,13 +158,9 @@ namespace drawinglayer TextLayouterDevice aTextLayouter; aTextLayouter.setFontAttributes(getFontAttributes(), aFontScale.getX(), aFontScale.getY()); - // get integer DXArray for getTextOutlines call (ATM uses vcl, so this - // is needed) - const basegfx::B2DVector aPixelVector(getTextTransform() * basegfx::B2DVector(1.0, 0.0)); - const ::std::vector< sal_Int32 > aNewIntegerDXArray(getDXArray().size(), basegfx::fround(aPixelVector.getLength())); - - // get the text outlines - aTextLayouter.getTextOutlines(rTarget, getText(), getTextPosition(), getTextLength(), aNewIntegerDXArray); + // get the text outlines. No DXArray is given (would contain integers equal to unit vector + // transformed by object's transformation), let VCL do the job + aTextLayouter.getTextOutlines(rTarget, getText(), getTextPosition(), getTextLength()); // create primitives for the outlines const sal_uInt32 nCount(rTarget.size()); -- cgit