https://bugs.documentfoundation.org/show_bug.cgi?id=173265
Julien Nabet <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.documentfounda | |tion.org/show_bug.cgi?id=16 | |4864 CC| |[email protected] --- Comment #7 from Julien Nabet <[email protected]> --- Jim: it seems related to tdf#164864. a66fd0b6d9300a7def03658c1661cb6d5f609ab9 tdf#164864 SwNavigator should show index entries Indeed, with this patch it doesn't crash: diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 7449a48f8ced..5bdac6c2feb5 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -1152,9 +1152,7 @@ void SwContentType::FillMemberList(bool* pbContentChanged) assert(pBase); if (!pBase) continue; - OUString sName = pBase->GetTitle(); - if (sName.isEmpty()) - sName = pBase->GetTOXName().toString(); + OUString sName = pBase->GetTOXName().toString(); auto xTOXBaseCnt = std::make_unique<SwTOXBaseContent>(this, sName, nTox + n, *pBase); but with a by-default TOC on a brand new odt file, it will display "Table of Contents1" instead of "Table of Contents" -- You are receiving this mail because: You are the assignee for the bug.
