starmath/source/mathmlexport.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 2fb543496a61974edd15c2bfefbc83abe225a85a Author: Tor Lillqvist <t...@collabora.com> Date: Tue Oct 1 17:47:17 2013 +0300
Add sanity check to avoid crash I got a crash when saving doc from fdo#45349 as .fodt. Change-Id: I704d86e846e78848d914de7b48da6c9fa4075150 diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index 4e9e4ec..7fffe8f 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits