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

sw_redlinehide: SwFrame::IsCollapse() needs an extra check

Could be that the node is empty but the frame not.

Change-Id: I9b9af31f2ef9a6d862cfe38038222b5a46e6b0ab
üst 52ad4cbc
......@@ -999,7 +999,8 @@ bool SwFrame::IsCollapse() const
const SwTextFrame *pTextFrame = static_cast<const SwTextFrame*>(this);
const SwTextNode *pTextNode = pTextFrame->GetTextNodeForParaProps();
return pTextNode && pTextNode->IsCollapse();
// TODO this SwTextNode function is pointless and should be merged in here
return pTextFrame->GetText().isEmpty() && pTextNode && pTextNode->IsCollapse();
}
void SwContentFrame::MakePrtArea( const SwBorderAttrs &rAttrs )
......
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