summaryrefslogtreecommitdiff
path: root/sc/source/ui/navipi
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-05-14 10:07:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-05-14 12:31:24 +0200
commit5719e40defd0d7fd6681287ce6cd91efceba47da (patch)
treed998b8572392a28669ad682f063948e177d060c7 /sc/source/ui/navipi
parentd367749278d127a0dd3fb6bfb5b78c3e824bb834 (diff)
Resolves: tdf#133028 crash in calc navigator tooltips
Change-Id: Ibd10e31453d062fcf1c5a202e18bfc2aa889fc98 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94187 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/navipi')
-rw-r--r--sc/source/ui/navipi/content.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index b3f3a8110946..8b25b86de75f 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -620,11 +620,11 @@ IMPL_LINK(ScContentTree, QueryTooltipHdl, const weld::TreeIter&, rEntry, OUStrin
aHelpText = OUString::number(m_xTreeView->iter_n_children(rEntry)) +
" " + m_xTreeView->get_text(rEntry);
}
- else if (m_xTreeView->iter_compare(*xParent, *m_aRootNodes[ScContentId::NOTE]) == 0)
+ else if (m_aRootNodes[ScContentId::NOTE] && m_xTreeView->iter_compare(*xParent, *m_aRootNodes[ScContentId::NOTE]) == 0)
{
aHelpText = m_xTreeView->get_text(rEntry); // notes as help text
}
- else if (m_xTreeView->iter_compare(*xParent, *m_aRootNodes[ScContentId::AREALINK]) == 0)
+ else if (m_aRootNodes[ScContentId::AREALINK] && m_xTreeView->iter_compare(*xParent, *m_aRootNodes[ScContentId::AREALINK]) == 0)
{
auto nIndex = GetChildIndex(&rEntry);
if (nIndex != SC_CONTENT_NOCHILD)