diff options
Diffstat (limited to 'svx/source/unodraw/unoshap2.cxx')
-rw-r--r-- | svx/source/unodraw/unoshap2.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/unodraw/unoshap2.cxx b/svx/source/unodraw/unoshap2.cxx index 8b86a690a8f1..ccd5515e69d9 100644 --- a/svx/source/unodraw/unoshap2.cxx +++ b/svx/source/unodraw/unoshap2.cxx @@ -1761,8 +1761,8 @@ awt::Point SAL_CALL SvxCustomShape::getPosition() throw(uno::RuntimeException, s Point aRef1( ( aBoundRect.Left() + aBoundRect.Right() ) >> 1, aBoundRect.Top() ); Point aRef2( aRef1.X(), aRef1.Y() + 1000 ); sal_uInt16 i; - sal_uInt16 nPntAnz=aPol.GetSize(); - for (i=0; i<nPntAnz; i++) + sal_uInt16 nPointCount=aPol.GetSize(); + for (i=0; i<nPointCount; i++) { MirrorPoint(aPol[i],aRef1,aRef2); } @@ -1783,8 +1783,8 @@ awt::Point SAL_CALL SvxCustomShape::getPosition() throw(uno::RuntimeException, s Point aRef1( aBoundRect.Left(), ( aBoundRect.Top() + aBoundRect.Bottom() ) >> 1 ); Point aRef2( aRef1.X() + 1000, aRef1.Y() ); sal_uInt16 i; - sal_uInt16 nPntAnz=aPol.GetSize(); - for (i=0; i<nPntAnz; i++) + sal_uInt16 nPointCount=aPol.GetSize(); + for (i=0; i<nPointCount; i++) { MirrorPoint(aPol[i],aRef1,aRef2); } @@ -1876,7 +1876,7 @@ void SAL_CALL SvxCustomShape::setPropertyValue( const OUString& aPropertyName, c pObject->NbcMirror( aTop, aBottom ); // NbcMirroring is flipping the current mirror state, // so we have to set the correct state again - static_cast<SdrObjCustomShape*>(pObject)->SetMirroredX( bMirroredX ? sal_False : sal_True ); + static_cast<SdrObjCustomShape*>(pObject)->SetMirroredX( !bMirroredX ); } if ( bNeedsMirrorY ) { @@ -1885,7 +1885,7 @@ void SAL_CALL SvxCustomShape::setPropertyValue( const OUString& aPropertyName, c pObject->NbcMirror( aLeft, aRight ); // NbcMirroring is flipping the current mirror state, // so we have to set the correct state again - static_cast<SdrObjCustomShape*>(pObject)->SetMirroredY( bMirroredY ? sal_False : sal_True ); + static_cast<SdrObjCustomShape*>(pObject)->SetMirroredY( !bMirroredY ); } if( pListCopy ) |