diff options
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 |