diff options
author | Noel Power <noel.power@suse.com> | 2013-04-15 20:35:47 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-04-15 20:37:19 +0100 |
commit | dd763604784fe10ee06a2f9c1fddf74cdf890bcc (patch) | |
tree | fe601ebfc1259a585b2e041ab3471d3561520ef7 /vcl/source/control/ilstbox.cxx | |
parent | 808d14765bcf57870c9306c40a431e525b0eaa71 (diff) |
basic inplace Font preview for calc
Change-Id: Ic1e6c953852a6106ee94f0b577ed398d62aa2285
Diffstat (limited to 'vcl/source/control/ilstbox.cxx')
-rw-r--r-- | vcl/source/control/ilstbox.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx index 9ab5da4e8ef3..7abe06b06ec9 100644 --- a/vcl/source/control/ilstbox.cxx +++ b/vcl/source/control/ilstbox.cxx @@ -1811,7 +1811,12 @@ void ImplListBoxWindow::ImplPaint( sal_uInt16 nPos, sal_Bool bErase, bool bLayou if ( nPos < GetEntryList()->GetMRUCount() ) nPos = GetEntryList()->FindEntry( GetEntryList()->GetEntryText( nPos ) ); nPos = sal::static_int_cast<sal_uInt16>(nPos - GetEntryList()->GetMRUCount()); - UserDrawEvent aUDEvt( this, aRect, nPos, 0 ); + sal_uInt16 nCurr = mnCurrentPos; + if ( mnCurrentPos < GetEntryList()->GetMRUCount() ) + nCurr = GetEntryList()->FindEntry( GetEntryList()->GetEntryText( nCurr ) ); + nCurr = sal::static_int_cast<sal_uInt16>( nCurr - GetEntryList()->GetMRUCount()); + + UserDrawEvent aUDEvt( this, aRect, nPos, nCurr ); maUserDrawHdl.Call( &aUDEvt ); mbInUserDraw = sal_False; } |