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

Resolves: rhbz#1179642 crash in GetFocus with empty mpPreviouslyFocusedListBox

Change-Id: I7559067c00617482d34e7cbdd177202868cbfc76
üst 034e0a59
......@@ -123,9 +123,10 @@ void ScPivotLayoutTreeListBase::GetFocus()
if( GetGetFocusFlags() & GETFOCUS_MNEMONIC )
{
SvTreeListEntry* pEntry = mpParent->mpPreviouslyFocusedListBox->GetCurEntry();
InsertEntryForSourceTarget(pEntry, NULL);
if (pEntry)
InsertEntryForSourceTarget(pEntry, NULL);
if(mpParent->mpPreviouslyFocusedListBox != NULL)
if (mpParent->mpPreviouslyFocusedListBox != NULL)
mpParent->mpPreviouslyFocusedListBox->GrabFocus();
}
......
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