Kaydet (Commit) 27995e63 authored tarafından Michael Meeks's avatar Michael Meeks Kaydeden (comit) Xisco Faulí

tdf#122020 - avoid nullptr deref.

Change-Id: Iaa63a90841523061490d207ba5403de26d5c0025
Reviewed-on: https://gerrit.libreoffice.org/65005
Tested-by: Jenkins
Reviewed-by: 's avatarXisco Faulí <xiscofauli@libreoffice.org>
üst 89c888b4
......@@ -183,7 +183,9 @@ IMPL_LINK(DBTreeListBox, OnResetEntry, void*, p, void)
// set the flag which allows if the entry can be expanded
pEntry->SetFlags( (pEntry->GetFlags() & ~SvTLEntryFlags(SvTLEntryFlags::NO_NODEBMP | SvTLEntryFlags::HAD_CHILDREN)) | SvTLEntryFlags::CHILDREN_ON_DEMAND );
// redraw the entry
GetModel()->InvalidateEntry( pEntry );
SvTreeList* myModel = GetModel();
if (myModel)
myModel->InvalidateEntry( pEntry );
}
void DBTreeListBox::ModelHasEntryInvalidated( SvTreeListEntry* _pEntry )
......
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