diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-09 13:50:20 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-10-14 15:28:17 +0200 |
commit | cc056e724edab05a19da0f3b1b364d33b33528e9 (patch) | |
tree | 03837e78cae79d2a27663a0c1ace32505e8b2239 /svtools | |
parent | 0661b4a5cafcceb6fd57eca1946a1b23427d6d38 (diff) |
Resolves: fdo#82270 Grabbing focus can invalidate the entries
Change-Id: Ie9b4f936cebdcf2a37e66abef456c6b0c0e26201
(cherry picked from commit fef9bf4e39b041c7f13e4d1584e3086068e781fc)
Reviewed-on: https://gerrit.libreoffice.org/11878
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 79ae60b3d59e..d08660d42178 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -2049,6 +2049,8 @@ void SvImpLBox::MouseButtonDown( const MouseEvent& rMEvt ) nCurTabPos = FIRST_ENTRY_TAB; nFlags &= (~F_FILLING); pView->GrabFocus(); + //fdo#82270 Grabbing focus can invalidate the entries, re-fetch + pEntry = GetEntry(aPos); // the entry can still be invalid! if( !pEntry || !pView->GetViewData( pEntry )) return; |