diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-10-29 19:55:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-29 21:29:59 +0100 |
commit | 9f6fbe36da3d53df0b64c41e9ea51cc20d442a30 (patch) | |
tree | 6803aaacf454aaebef0857c5bed351cc028fd713 /sfx2 | |
parent | 78c6e88e163f50eccc1cebdb2defe9ec4af248ce (diff) |
tdf#137754 Crash in styles tree in sidebar in impress
this is a timing bug - easier to hit on a slow machine,
or with a debug build - it happens when mouse movement
triggers a request for a tooltip in the tree, but the tree
is in a transition state.
Change-Id: Ibed7ffd01483b26f2debb1aa9cc99e23b38ba950
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105025
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index e9bfc17fa876..a23b4d904dd5 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -241,6 +241,8 @@ IMPL_LINK(SfxCommonTemplateDialog_Impl, QueryTooltipHdl, const weld::TreeIter&, OUString sQuickHelpText(aTemplName); const SfxStyleFamilyItem* pItem = GetFamilyItem_Impl(); + if (!pItem) + return sQuickHelpText; SfxStyleSheetBase* pStyle = pStyleSheetPool->Find(aTemplName, pItem->GetFamily()); if (pStyle && pStyle->IsUsed()) // pStyle is in use in the document? |