diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-13 15:49:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-14 07:27:50 +0100 |
commit | 2096aac8b958db66b3ddce16b06dca87edc8ba0a (patch) | |
tree | 68f5972ea90c5f434deaa1e29f5ce1e710634fa4 /editeng/source/accessibility | |
parent | a9ca38bdf7ff9d15529b5903e640987fc14c0fa7 (diff) |
loplugin:changetoolsgen in editeng..extensions
Change-Id: I476fd8b988216a300c57fcf184ea3742139363fe
Reviewed-on: https://gerrit.libreoffice.org/49656
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/accessibility')
-rw-r--r-- | editeng/source/accessibility/AccessibleStringWrap.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editeng/source/accessibility/AccessibleStringWrap.cxx b/editeng/source/accessibility/AccessibleStringWrap.cxx index 64ea287dc9ff..63a2fca3ef34 100644 --- a/editeng/source/accessibility/AccessibleStringWrap.cxx +++ b/editeng/source/accessibility/AccessibleStringWrap.cxx @@ -48,16 +48,16 @@ void AccessibleStringWrap::GetCharacterBounds( sal_Int32 nIndex, tools::Rectangl { // create a caret bounding rect that has the height of the // current font and is one pixel wide. - rRect.Left() = mrDev.GetTextWidth(maText); - rRect.Top() = 0; + rRect.SetLeft( mrDev.GetTextWidth(maText) ); + rRect.SetTop( 0 ); rRect.SetSize( Size(mrDev.GetTextHeight(), 1) ); } else { long aXArray[2]; mrDev.GetCaretPositions( maText, aXArray, nIndex, 1 ); - rRect.Left() = 0; - rRect.Top() = 0; + rRect.SetLeft( 0 ); + rRect.SetTop( 0 ); rRect.SetSize( Size(mrDev.GetTextHeight(), labs(aXArray[0] - aXArray[1])) ); rRect.Move( std::min(aXArray[0], aXArray[1]), 0 ); } |