diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-08-20 23:02:56 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2014-08-23 03:24:19 -0500 |
commit | 02bcf0d5abff100289d01c29eee2ed0685eb64ca (patch) | |
tree | 9ae36aea970cfc68848afb8f92e03460d9e7b834 /starmath | |
parent | b07951a867e66c8b8523505de9ad6c13e9b55fc7 (diff) |
Resolves: fdo#82747 Crash on opening wikipedia ODT Book
Test if there's indeed a subnode before testing its type
Cherry-picked from 3d34eb4612fa59fae7594399d3d6f798ddb35582
Change-Id: I1bb32652ceb82b0818a8d2cd8d71b46dd96ef2aa
Reviewed-on: https://gerrit.libreoffice.org/11050
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Reviewed-on: https://gerrit.libreoffice.org/11083
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathmlexport.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx index 6308de33f974..c55190b31059 100644 --- a/starmath/source/mathmlexport.cxx +++ b/starmath/source/mathmlexport.cxx @@ -866,6 +866,7 @@ void SmXMLExport::ExportTable(const SmNode *pNode, int nLevel) } else if (pTemp->GetType() == NLINE && pTemp->GetNumSubNodes() == 1 && + pTemp->GetSubNode(0) && pTemp->GetSubNode(0)->GetType() == NALIGN) { // For the Table() construction, the NALIGN node is a child |