Kaydet (Commit) 2fb54349 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Add sanity check to avoid crash

I got a crash when saving doc from fdo#45349 as .fodt.

Change-Id: I704d86e846e78848d914de7b48da6c9fa4075150
üst ecbe980c
......@@ -861,6 +861,7 @@ void SmXMLExport::ExportTable(const SmNode *pNode, int nLevel)
{
const SmNode *pLine = pNode->GetSubNode(nSize-1);
if (pLine->GetType() == NLINE && pLine->GetNumSubNodes() == 1 &&
pLine->GetSubNode(0) != NULL &&
pLine->GetSubNode(0)->GetToken().eType == TNEWLINE)
--nSize;
}
......
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