summaryrefslogtreecommitdiff
path: root/drawinglayer/source/primitive2d/textprimitive2d.cxx
diff options
context:
space:
mode:
authorArmin Weiss <aw@openoffice.org>2007-12-12 12:23:40 +0000
committerArmin Weiss <aw@openoffice.org>2007-12-12 12:23:40 +0000
commitc58ad39340a331ca5b77f39530f5267985b53144 (patch)
tree9f697fd3c7f3c95904140b94e772134f421ee38a /drawinglayer/source/primitive2d/textprimitive2d.cxx
parent951409194e0404dd794bda0fbd890999d4c394f2 (diff)
#i39532# clipping changes
Diffstat (limited to 'drawinglayer/source/primitive2d/textprimitive2d.cxx')
-rw-r--r--drawinglayer/source/primitive2d/textprimitive2d.cxx14
1 files changed, 5 insertions, 9 deletions
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());