diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-26 13:28:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-27 10:24:59 +0100 |
commit | 68e6706fb931ed2f53c08bc9c0a02cbb559c8c53 (patch) | |
tree | d24225c6da5eda1cf7070f419deb3d2f6f94c36a /sw/inc/swrect.hxx | |
parent | be5af6cefea2fa43479ec6124e2c847956144a6d (diff) |
drop old tools/gen.hxx methods in sw
Change-Id: I1db8954b86e9b2ec27ecc1f65e8ff7715612d756
Reviewed-on: https://gerrit.libreoffice.org/50363
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/swrect.hxx')
-rw-r--r-- | sw/inc/swrect.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/swrect.hxx b/sw/inc/swrect.hxx index 924e4adc2ebd..c4b1889ae4ae 100644 --- a/sw/inc/swrect.hxx +++ b/sw/inc/swrect.hxx @@ -191,7 +191,7 @@ inline void SwRect::Height( long nNew ) } inline void SwRect::Left( const long nLeft ) { - m_Size.Width() += m_Point.getX() - nLeft; + m_Size.AdjustWidth( m_Point.getX() - nLeft ); m_Point.setX(nLeft); } inline void SwRect::Right( const long nRight ) @@ -200,7 +200,7 @@ inline void SwRect::Right( const long nRight ) } inline void SwRect::Top( const long nTop ) { - m_Size.Height() += m_Point.getY() - nTop; + m_Size.AdjustHeight( m_Point.getY() - nTop ); m_Point.setY(nTop); } inline void SwRect::Bottom( const long nBottom ) |