diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-13 14:21:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-14 12:50:37 +0100 |
commit | f841dada1a5018897cce29ccf972da33ece4738c (patch) | |
tree | af861d8c6abf98eed1b20ba7fdab2b3997d6e9be /cui/source/dialogs/thesdlg.cxx | |
parent | 9763383ebb7e5b10ba9e7557dffa803a8d392c0d (diff) |
loplugin:changetoolsgen in canvas..cui
Change-Id: I4e320055a3dbe4159c2aa2714e1ee98182e1e80a
Reviewed-on: https://gerrit.libreoffice.org/49642
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/dialogs/thesdlg.cxx')
-rw-r--r-- | cui/source/dialogs/thesdlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx index 96d8ff26e496..d80a88c0ff53 100644 --- a/cui/source/dialogs/thesdlg.cxx +++ b/cui/source/dialogs/thesdlg.cxx @@ -155,10 +155,10 @@ void AlternativesString::Paint(const Point& rPos, SvTreeListBox& /*rDev*/, vcl:: vcl::Font aFont(rRenderContext.GetFont()); aFont.SetWeight(WEIGHT_BOLD); rRenderContext.SetFont(aFont); - aPos.X() = 0; + aPos.setX( 0 ); } else - aPos.X() += 5; + aPos.setX( aPos.X() + 5 ); rRenderContext.DrawText(aPos, GetText()); rRenderContext.Pop(); } @@ -262,7 +262,7 @@ void ThesaurusAlternativesCtrl::Paint(vcl::RenderContext& rRenderContext, const Size aTextSize(rRenderContext.GetTextWidth(m_pDialog->getErrStr()), rRenderContext.GetTextHeight()); aTextSize = rRenderContext.LogicToPixel(aTextSize); Point aPos; - aPos.X() += GetSizePixel().Width() / 2 - aTextSize.Width() / 2; + aPos.setX( aPos.X() + GetSizePixel().Width() / 2 - aTextSize.Width() / 2 ); aPos.Y() += GetSizePixel().Height() / 2; aPos = rRenderContext.PixelToLogic(aPos); rRenderContext.DrawText(aPos, m_pDialog->getErrStr()); |