summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-05-29 12:57:59 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-05-29 13:00:39 +0100
commit8c55f7542b1be9dc11992e0942eaabc6688bfa3c (patch)
tree37d9f2b8e0bd0b94d47dcc5595b8437e47dddd44 /filter
parentc1a595aa0b4b721ae1e465ce08f6e4fdf78171b8 (diff)
targetted re-work
Change-Id: I64a38e22f776914605fe3903312524d8827e29a2
Diffstat (limited to 'filter')
-rw-r--r--filter/source/svg/svgwriter.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index 5bcbb5aeb2e6..1106eaf3474e 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -484,7 +484,7 @@ PolyPolygon& SVGActionWriter::ImplMap( const PolyPolygon& rPolyPoly, PolyPolygon
for( long i = 0, nCount = rPolyPoly.Count(); i < nCount; i++ )
{
const Polygon& rPoly = rPolyPoly[ (sal_uInt16) i ];
- sal_uInt16 nSize = rPoly.GetSize();
+ sal_uInt16 n = 1, nSize = rPoly.GetSize();
if( nSize > 1 )
{
@@ -494,8 +494,6 @@ PolyPolygon& SVGActionWriter::ImplMap( const PolyPolygon& rPolyPoly, PolyPolygon
aPathData += ::rtl::OUString::valueOf( aPolyPoint.Y() );
sal_Char nCurrentMode = 0;
- sal_uInt16 n = 1;
-
while( n < nSize )
{
aPathData += aBlank;
@@ -1201,9 +1199,10 @@ void SVGActionWriter::ImplWriteText( const Point& rPos, const String& rText,
if( nWidth && aNormSize.Width() && ( nWidth != aNormSize.Width() ) )
{
+ long i;
const double fFactor = (double) nWidth / aNormSize.Width();
- for( long i = 0; i < ( nLen - 1 ); i++ )
+ for( i = 0; i < ( nLen - 1 ); i++ )
pDX[ i ] = FRound( pDX[ i ] * fFactor );
}
else