diff options
Diffstat (limited to 'lotuswordpro/source/filter/lwpdrawobj.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpdrawobj.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx index 82e1fc5f9842..cab4dd260125 100644 --- a/lotuswordpro/source/filter/lwpdrawobj.cxx +++ b/lotuswordpro/source/filter/lwpdrawobj.cxx @@ -835,10 +835,10 @@ void LwpDrawEllipse::Read() { ReadClosedObjStyle(); - for (sal_uInt8 nC = 0; nC < 13; nC++) + for (SdwPoint & nC : m_aVector) { - m_pStream->ReadInt16( m_aVector[nC].x ); - m_pStream->ReadInt16( m_aVector[nC].y ); + m_pStream->ReadInt16( nC.x ); + m_pStream->ReadInt16( nC.y ); } } @@ -914,10 +914,10 @@ void LwpDrawArc::Read() m_pStream->ReadUChar( m_aArcRec.aPenColor.unused ); m_pStream->ReadUChar( m_aArcRec.nLineEnd ); - for (sal_uInt8 nC = 0; nC < 4; nC++) + for (SdwPoint & nC : m_aVector) { - m_pStream->ReadInt16( m_aVector[nC].x ); - m_pStream->ReadInt16( m_aVector[nC].y ); + m_pStream->ReadInt16( nC.x ); + m_pStream->ReadInt16( nC.y ); } } @@ -1194,10 +1194,10 @@ void LwpDrawTextArt::CreateFWPath(XFDrawPath* pPath) void LwpDrawTextArt::Read() { - for (sal_uInt8 nC = 0; nC < 4; nC++) + for (SdwPoint & nC : m_aVector) { - m_pStream->ReadInt16( m_aVector[nC].x ); - m_pStream->ReadInt16( m_aVector[nC].y ); + m_pStream->ReadInt16( nC.x ); + m_pStream->ReadInt16( nC.y ); } ReadClosedObjStyle(); |