diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-20 11:03:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-21 06:04:19 +0100 |
commit | 924c0e34fdc36cd44100dafc2c68656ce32374e6 (patch) | |
tree | 05548e06d476b1244abb3ef83013514c7f991b3e /svx/source/table/cell.cxx | |
parent | fd20935bb819cb24e71f4f91b97149c35bc5987d (diff) |
loplugin:changetoolsgen in svx
and fix the regex in the plugin for matching += operator
Change-Id: I26b3e3fac1d4ef3e756cc9431b983b5f27ee76d6
Reviewed-on: https://gerrit.libreoffice.org/50037
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/table/cell.cxx')
-rw-r--r-- | svx/source/table/cell.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx index b76f39e51f6f..b5ba5ddbb8eb 100644 --- a/svx/source/table/cell.cxx +++ b/svx/source/table/cell.cxx @@ -695,10 +695,10 @@ SfxStyleSheet* Cell::GetStyleSheet() const void Cell::TakeTextAnchorRect(tools::Rectangle& rAnchorRect) const { - rAnchorRect.Left() = maCellRect.Left() + GetTextLeftDistance(); - rAnchorRect.Right() = maCellRect.Right() - GetTextRightDistance(); - rAnchorRect.Top() = maCellRect.Top() + GetTextUpperDistance(); - rAnchorRect.Bottom() = maCellRect.Bottom() - GetTextLowerDistance(); + rAnchorRect.SetLeft( maCellRect.Left() + GetTextLeftDistance() ); + rAnchorRect.SetRight( maCellRect.Right() - GetTextRightDistance() ); + rAnchorRect.SetTop( maCellRect.Top() + GetTextUpperDistance() ); + rAnchorRect.SetBottom( maCellRect.Bottom() - GetTextLowerDistance() ); } @@ -735,7 +735,7 @@ sal_Int32 Cell::getMinimumHeight() tools::Rectangle aTextRect; TakeTextAnchorRect( aTextRect ); Size aSize( aTextRect.GetSize() ); - aSize.Height()=0x0FFFFFFF; + aSize.setHeight(0x0FFFFFFF ); SdrOutliner* pEditOutliner = rTableObj.GetCellTextEditOutliner( *this ); if(pEditOutliner) |