From 39724e4b61dc6e607e905675d96d0912b2adbc83 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Fri, 23 Aug 2002 08:23:41 +0000 Subject: #100127# Correctly scaling start/end polygon now --- svx/source/svdraw/svdobj.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index 2971cc285d..4a052ccc64 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -2,9 +2,9 @@ * * $RCSfile: svdobj.cxx,v $ * - * $Revision: 1.38 $ + * $Revision: 1.39 $ * - * last change: $Author: thb $ $Date: 2002-08-22 09:48:51 $ + * last change: $Author: thb $ $Date: 2002-08-23 09:23:41 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2291,7 +2291,8 @@ void SdrObject::ImpDrawLineGeometry( if( aBounds.GetWidth() ) { - double fScale( (double)rLineParameters.GetStartWidth() / (double)aBounds.GetWidth() ); + double fScale( (double)rLineParameters.GetStartWidth() / (double)rLineParameters.GetLineWidth() * + (double)SvtGraphicStroke::normalizedArrowWidth / (double)aBounds.GetWidth() ); aStartPoly.Scale( fScale, fScale ); } @@ -2308,7 +2309,8 @@ void SdrObject::ImpDrawLineGeometry( if( aBounds.GetWidth() ) { - double fScale( static_cast(rLineParameters.GetEndWidth()) / static_cast(aBounds.GetWidth()) ); + double fScale( (double)rLineParameters.GetEndWidth() / (double)rLineParameters.GetLineWidth() * + (double)SvtGraphicStroke::normalizedArrowWidth / (double)aBounds.GetWidth() ); aEndPoly.Scale( fScale, fScale ); } -- cgit v1.2.3