summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-12-20 21:37:20 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-12-21 13:27:37 +0100
commit89eb22881c40545d6e4cbea96a8cf607c8ea6722 (patch)
tree5be1c2f47e7ab2f0e273b850f50cb63cf2ab81a0 /dbaccess
parentb2e7e5ac8d511ada9e254d86b2f16509d4b9b977 (diff)
undo the band-aid
I think 27995e638e1582b443befa93bc5dfd5970a38ef2 tdf#122020 - avoid nullptr deref is unnecessary with the other fix for tdf#122020 Change-Id: Ibc6773c9e3a0cb234331aa988ce009967123f1da Reviewed-on: https://gerrit.libreoffice.org/65515 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/control/dbtreelistbox.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx
index 2edbd0f6195a..2ad783072f18 100644
--- a/dbaccess/source/ui/control/dbtreelistbox.cxx
+++ b/dbaccess/source/ui/control/dbtreelistbox.cxx
@@ -183,9 +183,7 @@ void DBTreeListBox::EnableExpandHandler(SvTreeListEntry* pEntry)
// 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
- SvTreeList* myModel = GetModel();
- if (myModel)
- myModel->InvalidateEntry( pEntry );
+ GetModel()->InvalidateEntry(pEntry);
}
IMPL_LINK(DBTreeListBox, OnResetEntryHdl, void*, p, void)