From d6d76a89898cdb4b448d97daed3e3f0fb8b47fb9 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 25 Oct 2018 13:25:59 +0200 Subject: sw_redlinehide_3: adapt SwTextNode::IsNumbered() & callers Answer depends on layout. Change-Id: Ibc7bddfa1b04630ddcfcfa429fbb507347073ce2 --- sw/source/core/txtnode/ndtxt.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/core/txtnode') diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index cf8ec5bbeccd..b571fb73e3cc 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -2890,9 +2890,9 @@ void SwTextNode::NumRuleChgd() } // -> #i27615# -bool SwTextNode::IsNumbered() const +bool SwTextNode::IsNumbered(SwRootFrame const*const pLayout) const { - SwNumRule* pRule = GetNum() ? GetNum()->GetNumRule() : nullptr; + SwNumRule* pRule = GetNum(pLayout) ? GetNum(pLayout)->GetNumRule() : nullptr; return pRule && IsCountedInList(); } -- cgit v1.2.3