Kaydet (Commit) 7efb0439 authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide: adapt SwFrame::InvalidatePage()

Change-Id: I38f2b4b34e3c740f94f2d6564e1a923a8ee4aaf8
üst 8ae62c31
......@@ -678,9 +678,33 @@ void SwFrame::InvalidatePage( const SwPageFrame *pPage ) const
}
pRoot->SetIdleFlags();
const SwTextNode *pTextNode = dynamic_cast< const SwTextNode * >(GetDep());
if (pTextNode && pTextNode->IsGrammarCheckDirty())
pRoot->SetNeedGrammarCheck( true );
if (IsTextFrame())
{
SwTextFrame const*const pText(static_cast<SwTextFrame const*>(this));
if (sw::MergedPara const*const pMergedPara = pText->GetMergedPara())
{
SwTextNode const* pNode(nullptr);
for (auto const& e : pMergedPara->extents)
{
if (e.pNode != pNode)
{
pNode = e.pNode;
if (pNode->IsGrammarCheckDirty())
{
pRoot->SetNeedGrammarCheck( true );
break;
}
}
}
}
else
{
if (pText->GetTextNodeFirst()->IsGrammarCheckDirty())
{
pRoot->SetNeedGrammarCheck( true );
}
}
}
}
}
......
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