summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/fillctrl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-20 11:03:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 06:04:19 +0100
commit924c0e34fdc36cd44100dafc2c68656ce32374e6 (patch)
tree05548e06d476b1244abb3ef83013514c7f991b3e /svx/source/tbxctrls/fillctrl.cxx
parentfd20935bb819cb24e71f4f91b97149c35bc5987d (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/tbxctrls/fillctrl.cxx')
-rw-r--r--svx/source/tbxctrls/fillctrl.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/tbxctrls/fillctrl.cxx b/svx/source/tbxctrls/fillctrl.cxx
index de2daa040229..d41058d73a21 100644
--- a/svx/source/tbxctrls/fillctrl.cxx
+++ b/svx/source/tbxctrls/fillctrl.cxx
@@ -884,11 +884,11 @@ void FillControl::SetOptimalSize()
Point aAttrPnt = mpLbFillAttr->GetPosPixel();
- aSize.Height() = std::max(aSize.Height(), mpLbFillType->get_preferred_size().Height());
- aSize.Height() = std::max(aSize.Height(), mpToolBoxColor->get_preferred_size().Height());
- aSize.Height() = std::max(aSize.Height(), mpLbFillAttr->get_preferred_size().Height());
+ aSize.setHeight( std::max(aSize.Height(), mpLbFillType->get_preferred_size().Height()) );
+ aSize.setHeight( std::max(aSize.Height(), mpToolBoxColor->get_preferred_size().Height()) );
+ aSize.setHeight( std::max(aSize.Height(), mpLbFillAttr->get_preferred_size().Height()) );
- aSize.Width() = aAttrPnt.X() + aSize.Width();
+ aSize.setWidth( aAttrPnt.X() + aSize.Width() );
SetSizePixel(aSize);
}