diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-14 15:20:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-15 07:27:43 +0100 |
commit | c82802a9ee3514d0b98fbb3783abbc17ec02c3b6 (patch) | |
tree | 0f942fe36637686fcfe61d8c1ded77b2aeadbc37 /sfx2/source/dialog/templdlg.cxx | |
parent | 45a4e70484e7d90dab07a677914ada2d948b415c (diff) |
loplugin:changetoolsgen in sfx2
Change-Id: I34a007711e2ffc70bdee6823ea9b85f60f819e6e
Reviewed-on: https://gerrit.libreoffice.org/49727
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/dialog/templdlg.cxx')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index a25f4685c4e7..de2cf05e7743 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -374,8 +374,8 @@ void SfxTemplatePanelControl::StateChanged( StateChangedType nStateChange ) Point aPoint = pEditWin->OutputToScreenPixel( pEditWin->GetPosPixel() ); aPoint = GetParent()->ScreenToOutputPixel( aPoint ); Size aWinSize = GetSizePixel(); - aPoint.X() += aSize.Width() - aWinSize.Width() - 20; - aPoint.Y() += aSize.Height() / 2 - aWinSize.Height() / 2; + aPoint.setX( aPoint.X() + aSize.Width() - aWinSize.Width() - 20 ); + aPoint.setY( aPoint.Y() + aSize.Height() / 2 - aWinSize.Height() / 2 ); // SetFloatingPos( aPoint ); } @@ -2310,7 +2310,7 @@ void SfxTemplateDialog_Impl::Resize() pTreeBox->SetPosPixel(aFmtPos); } else - aFmtSize.Height() += aFilterSize.Height(); + aFmtSize.setHeight( aFmtSize.Height() + aFilterSize.Height() ); aFilterLb->SetSizePixel(aFilterSize); aFmtLb->SetSizePixel( aFmtSize ); |