diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-09-30 04:24:50 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2011-10-05 18:51:28 -0500 |
commit | 27e3ac22295c94ba78434193000f936aa2a77227 (patch) | |
tree | 60041e19740f23b1478a6fa3c94c65780e53d828 | |
parent | bfa7ecddf4799b9682d1ecbba160b6da21b18ed6 (diff) |
accfixes2: GetBoundingRectangle - rectangle calculation changed
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index 42d15ef22a4b..678ccdb5177e 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -2175,7 +2175,8 @@ Rectangle ImplListBoxWindow::GetBoundingRectangle( sal_uInt16 nItem ) const { const ImplEntryType* pEntry = mpEntryList->GetEntryPtr( nItem ); Size aSz( GetSizePixel().Width(), pEntry ? pEntry->mnHeight : GetEntryHeight() ); - long nY = mpEntryList->GetAddedHeight( nItem, GetTopEntry() ) - mpEntryList->GetAddedHeight( GetTopEntry() ); +// long nY = mpEntryList->GetAddedHeight( nItem, GetTopEntry() ) - mpEntryList->GetAddedHeight( GetTopEntry() ); + long nY = mpEntryList->GetAddedHeight( nItem, GetTopEntry() ) + GetEntryList()->GetMRUCount()*GetEntryHeight(); Rectangle aRect( Point( 0, nY ), aSz ); return aRect; } |