[Libreoffice-commits] core.git: starmath/source

Julien Nabet serval2412 at yahoo.fr
Fri Aug 22 21:21:24 PDT 2014


 starmath/source/mathmlexport.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 3d34eb4612fa59fae7594399d3d6f798ddb35582
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Wed Aug 20 23:02:56 2014 +0200

    Resolves: fdo#82747 Crash on opening wikipedia ODT Book
    
    Test if there's indeed a subnode before testing its type
    
    Change-Id: I1bb32652ceb82b0818a8d2cd8d71b46dd96ef2aa
    Reviewed-on: https://gerrit.libreoffice.org/11050
    Reviewed-by: Thomas Arnhold <thomas at arnhold.org>
    Tested-by: Thomas Arnhold <thomas at arnhold.org>

diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index 6308de3..c55190b 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


More information about the Libreoffice-commits mailing list