targetted re-work

Change-Id: I64a38e22f776914605fe3903312524d8827e29a2
This commit is contained in:
Michael Meeks
2012-05-29 12:57:59 +01:00
parent c1a595aa0b
commit 8c55f7542b

View File

@@ -484,7 +484,7 @@ PolyPolygon& SVGActionWriter::ImplMap( const PolyPolygon& rPolyPoly, PolyPolygon
for( long i = 0, nCount = rPolyPoly.Count(); i < nCount; i++ ) for( long i = 0, nCount = rPolyPoly.Count(); i < nCount; i++ )
{ {
const Polygon& rPoly = rPolyPoly[ (sal_uInt16) i ]; const Polygon& rPoly = rPolyPoly[ (sal_uInt16) i ];
sal_uInt16 nSize = rPoly.GetSize(); sal_uInt16 n = 1, nSize = rPoly.GetSize();
if( nSize > 1 ) if( nSize > 1 )
{ {
@@ -494,8 +494,6 @@ PolyPolygon& SVGActionWriter::ImplMap( const PolyPolygon& rPolyPoly, PolyPolygon
aPathData += ::rtl::OUString::valueOf( aPolyPoint.Y() ); aPathData += ::rtl::OUString::valueOf( aPolyPoint.Y() );
sal_Char nCurrentMode = 0; sal_Char nCurrentMode = 0;
sal_uInt16 n = 1;
while( n < nSize ) while( n < nSize )
{ {
aPathData += aBlank; aPathData += aBlank;
@@ -1201,9 +1199,10 @@ void SVGActionWriter::ImplWriteText( const Point& rPos, const String& rText,
if( nWidth && aNormSize.Width() && ( nWidth != aNormSize.Width() ) ) if( nWidth && aNormSize.Width() && ( nWidth != aNormSize.Width() ) )
{ {
long i;
const double fFactor = (double) nWidth / aNormSize.Width(); 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 ); pDX[ i ] = FRound( pDX[ i ] * fFactor );
} }
else else