Kaydet (Commit) 96ddaba1 authored tarafından Julien Nabet's avatar Julien Nabet Kaydeden (comit) Andras Timar

Resolves: fdo#82747 Crash on opening wikipedia ODT Book

Test if there's indeed a subnode before testing its type

Cherry-picked from 3d34eb46

Change-Id: I1bb32652ceb82b0818a8d2cd8d71b46dd96ef2aa
Reviewed-on: https://gerrit.libreoffice.org/11050Reviewed-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Tested-by: 's avatarThomas Arnhold <thomas@arnhold.org>
Reviewed-on: https://gerrit.libreoffice.org/11084Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst e8a398bd
......@@ -890,6 +890,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
......
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