From a4b581bb996142d2906f23161ec673f958511649 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 4 May 2017 10:08:53 +0100 Subject: Resolves: tdf#107603 crash after loading new numrule in numbering dialog Change-Id: I0f270793a4b0312e23079789a37c402b31e54238 --- sw/source/ui/misc/outline.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sw/source/ui') diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx index 8aa522fc0d87..f58153e81672 100644 --- a/sw/source/ui/misc/outline.cxx +++ b/sw/source/ui/misc/outline.cxx @@ -307,6 +307,9 @@ IMPL_LINK( SwOutlineTabDialog, MenuSelectHdl, Menu *, pMenu, bool ) { xNumRule.reset(pRules->MakeNumRule(rWrtSh)); xNumRule->SetRuleType( OUTLINE_RULE ); + SfxTabPage* pOutlinePage = GetTabPage(m_nOutlineId); + assert(pOutlinePage); + static_cast(pOutlinePage)->SetNumRule(xNumRule.get()); } else *xNumRule = *rWrtSh.GetOutlineNumRule(); -- cgit