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@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
This commit is contained in:
parent
9aede3befb
commit
3d34eb4612
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue