Kaydet (Commit) 6eebecf3 authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide_3: apparently a live SwNodeNum always has a parent

... so assert that somewhere.

Change-Id: I928c55ffa57ec037e9406618d20b454e11dd80d4
üst c180c944
......@@ -4328,6 +4328,8 @@ void SwTextNode::RemoveFromListRLHidden()
bool SwTextNode::IsInList() const
{
// it looks like an unconnected Num can't happen, except in the undo-array
assert(!GetNum() || GetNum()->GetParent() || !GetNodes().IsDocNodes());
return GetNum() != nullptr && GetNum()->GetParent() != nullptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment