summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-10-26 11:58:58 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-10 19:47:00 +0100
commitfc8a16fddaebd3f337b344e7f9579b437bd96db2 (patch)
tree6e508287caea03eafe4aa3b374ffee9cff46c101 /sw/source/core/txtnode
parentf611e051039f489c2151d4c29af5d6eb8beb0820 (diff)
sw_redlinehide_3: SwEditShell::IsFirstNumRuleAtPos()
IsFirstOfNumRule() needs a layout so it can check the correct SwNodeNum. Change-Id: Ic6bd9adc909d7c325f5e450fd9e53a15f68e7a63
Diffstat (limited to 'sw/source/core/txtnode')
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index b571fb73e3cc..a02e880e8bd9 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -4348,12 +4348,13 @@ bool SwTextNode::IsInList() const
return GetNum() != nullptr && GetNum()->GetParent() != nullptr;
}
-bool SwTextNode::IsFirstOfNumRule() const
+bool SwTextNode::IsFirstOfNumRule(SwRootFrame const& rLayout) const
{
bool bResult = false;
- if ( GetNum() && GetNum()->GetNumRule())
- bResult = GetNum()->IsFirst();
+ SwNodeNum const*const pNum(GetNum(&rLayout));
+ if (pNum && pNum->GetNumRule())
+ bResult = pNum->IsFirst();
return bResult;
}