diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-27 17:10:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-01 07:19:10 +0100 |
commit | b8ececb409cd94b24d71f29339e652857dd2063a (patch) | |
tree | f732ff1cfec95c0d3eca06d3c906e67402a02b73 /accessibility | |
parent | a54a3afdb7da42bd603892d1c9b2fcdd7b405e8f (diff) |
drop old tools/gen methods in accessibility..formula
Change-Id: I075e29173945200854f2ef8e420867871659766a
Reviewed-on: https://gerrit.libreoffice.org/50446
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/inc/helper/listboxhelper.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accessibility/inc/helper/listboxhelper.hxx b/accessibility/inc/helper/listboxhelper.hxx index ba6ad5c750ee..346fdf6a9ecb 100644 --- a/accessibility/inc/helper/listboxhelper.hxx +++ b/accessibility/inc/helper/listboxhelper.hxx @@ -65,9 +65,9 @@ public: { tools::Rectangle aTemp = m_aComboListBox.GetDropDownPosSizePixel(); Size aSize = aTemp.GetSize(); - aSize.Height() /= m_aComboListBox.GetDisplayLineCount(); + aSize.setHeight( aSize.Height() / m_aComboListBox.GetDisplayLineCount() ); Point aTopLeft = aTemp.TopLeft(); - aTopLeft.Y() += aSize.Height() * ( nItem - m_aComboListBox.GetTopEntry() ); + aTopLeft.AdjustY( aSize.Height() * ( nItem - m_aComboListBox.GetTopEntry() ) ); aRect = tools::Rectangle( aTopLeft, aSize ); } else |