Kaydet (Commit) fef9bf4e authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#82270 Grabbing focus can invalidate the entries

Change-Id: Ie9b4f936cebdcf2a37e66abef456c6b0c0e26201
üst ffc06f9f
...@@ -2049,6 +2049,8 @@ void SvImpLBox::MouseButtonDown( const MouseEvent& rMEvt ) ...@@ -2049,6 +2049,8 @@ void SvImpLBox::MouseButtonDown( const MouseEvent& rMEvt )
nCurTabPos = FIRST_ENTRY_TAB; nCurTabPos = FIRST_ENTRY_TAB;
nFlags &= (~F_FILLING); nFlags &= (~F_FILLING);
pView->GrabFocus(); pView->GrabFocus();
//fdo#82270 Grabbing focus can invalidate the entries, re-fetch
pEntry = GetEntry(aPos);
// the entry can still be invalid! // the entry can still be invalid!
if( !pEntry || !pView->GetViewData( pEntry )) if( !pEntry || !pView->GetViewData( pEntry ))
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment