diff options
author | Jan Holesovsky <kendy@suse.cz> | 2013-04-22 16:20:25 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-04-22 16:24:52 +0200 |
commit | 30426feff508439f79b2737cba94637d66ee7691 (patch) | |
tree | 0e7fa36f3130ed2258e0f978021432e4303643e9 /sw | |
parent | aa1aedb2a0ef97cb6110f18a1de86abc8dbcd304 (diff) |
n#382137: Band-aid to avoid crash when saving the .odt to .docx.
Change-Id: I6994da8a79cd7d6ca559ca41823a912381bdd61e
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/wrtw8nds.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index c042bfe1bc2d..717af4790d49 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -1777,11 +1777,14 @@ void MSWordExportBase::OutputTextNode( const SwTxtNode& rNode ) if( !aIdx.GetNode().IsTxtNode() ) { const SwSectionNode* pTOXSectNd = rNode.FindSectionNode(); - pTOXSect = &pTOXSectNd->GetSection(); + if ( pTOXSectNd ) + { + pTOXSect = &pTOXSectNd->GetSection(); - const SwNode* pNxt = rNode.GetNodes().GoNext( &aIdx ); - if( pNxt && pNxt->FindSectionNode() == pTOXSectNd ) - pTOXSect = 0; + const SwNode* pNxt = rNode.GetNodes().GoNext( &aIdx ); + if( pNxt && pNxt->FindSectionNode() == pTOXSectNd ) + pTOXSect = 0; + } } } |