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/control/emojiviewitem.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/control/emojiviewitem.cxx')
-rw-r--r-- | sfx2/source/control/emojiviewitem.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/emojiviewitem.cxx b/sfx2/source/control/emojiviewitem.cxx index 1408d8d215a7..6a5d7987f980 100644 --- a/sfx2/source/control/emojiviewitem.cxx +++ b/sfx2/source/control/emojiviewitem.cxx @@ -53,8 +53,8 @@ void EmojiViewItem::calculateItemsPosition (const long /*nThumbnailHeight*/, con Point aPos = maDrawArea.TopLeft(); // Calculate text position - aPos.Y() = maDrawArea.getY() + (aRectSize.Height() - aTextDev.getTextHeight())/3; - aPos.X() = maDrawArea.Left() + (aRectSize.Width() - aTextDev.getTextWidth(maTitle,0,nMaxTextLength))/2; + aPos.setY( maDrawArea.getY() + (aRectSize.Height() - aTextDev.getTextHeight())/3 ); + aPos.setX( maDrawArea.Left() + (aRectSize.Width() - aTextDev.getTextWidth(maTitle,0,nMaxTextLength))/2 ); maTextPos = aPos; } |