You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by al...@apache.org on 2012/08/15 17:31:24 UTC
svn commit: r1373472 -
/incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
Author: alg
Date: Wed Aug 15 15:31:24 2012
New Revision: 1373472
URL: http://svn.apache.org/viewvc?rev=1373472&view=rev
Log:
#119198# Added to apply CurrentTransformation in primitive to metafile conversion when creating SvtGraphicStroke elements for compatibility
Modified:
incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
Modified: incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx?rev=1373472&r1=1373471&r2=1373472&view=diff
==============================================================================
--- incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx (original)
+++ incubator/ooo/trunk/main/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx Wed Aug 15 15:31:24 2012
@@ -423,8 +423,9 @@ namespace drawinglayer
if(pLineAttribute)
{
- // pre-fill fLineWidth
- fLineWidth = pLineAttribute->getWidth();
+ // pre-fill fLineWidth #119198# Need to apply maCurrentTransformation, too (!)
+ const basegfx::B2DVector aDiscreteUnit(maCurrentTransformation * basegfx::B2DVector(pLineAttribute->getWidth(), 0.0));
+ fLineWidth = aDiscreteUnit.getLength();
// pre-fill fMiterLength
fMiterLength = fLineWidth;