diff options
Diffstat (limited to 'emfio')
-rw-r--r-- | emfio/source/reader/mtftools.cxx | 6 | ||||
-rw-r--r-- | emfio/source/reader/wmfreader.cxx | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx index b265849f24e6..81aa50e2bf04 100644 --- a/emfio/source/reader/mtftools.cxx +++ b/emfio/source/reader/mtftools.cxx @@ -755,7 +755,7 @@ namespace emfio if ( pLineStyle->aLineInfo.GetStyle() == LineStyle::Dash ) { - aSize.setWidth( aSize.Width() + 1 ); + aSize.AdjustWidth(1 ); long nDotLen = ImplMap( aSize ).Width(); pLineStyle->aLineInfo.SetDistance( nDotLen ); pLineStyle->aLineInfo.SetDotLen( nDotLen ); @@ -1517,8 +1517,8 @@ namespace emfio // check whether there is a font rotation applied via transformation Point aP1( ImplMap( Point() ) ); Point aP2( ImplMap( Point( 0, 100 ) ) ); - aP2.setX( aP2.X() - aP1.X() ); - aP2.setY( aP2.Y() - aP1.Y() ); + aP2.AdjustX( -(aP1.X()) ); + aP2.AdjustY( -(aP1.Y()) ); double fX = aP2.X(); double fY = aP2.Y(); if ( fX ) diff --git a/emfio/source/reader/wmfreader.cxx b/emfio/source/reader/wmfreader.cxx index bd584af39fde..233b2f5552a3 100644 --- a/emfio/source/reader/wmfreader.cxx +++ b/emfio/source/reader/wmfreader.cxx @@ -160,8 +160,8 @@ namespace emfio Point aBR, aTL; aBR = ReadYX(); aTL = ReadYX(); - aBR.setX( --aBR.X() ); - aBR.Y()--; + aBR.AdjustX( -1 ); + aBR.AdjustY( -1 ); return tools::Rectangle( aTL, aBR ); } @@ -1479,10 +1479,10 @@ namespace emfio bool bRet = true; tools::Rectangle aBound; - aBound.Left() = RECT_MAX; - aBound.Top() = RECT_MAX; - aBound.Right() = RECT_MIN; - aBound.Bottom() = RECT_MIN; + aBound.SetLeft( RECT_MAX ); + aBound.SetTop( RECT_MAX ); + aBound.SetRight( RECT_MIN ); + aBound.SetBottom( RECT_MIN ); bool bBoundsDetermined = false; auto nPos = pStm->Tell(); |