summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-04-22 16:20:25 +0200
committerJan Holesovsky <kendy@suse.cz>2013-04-22 16:24:52 +0200
commit30426feff508439f79b2737cba94637d66ee7691 (patch)
tree0e7fa36f3130ed2258e0f978021432e4303643e9 /sw
parentaa1aedb2a0ef97cb6110f18a1de86abc8dbcd304 (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.cxx11
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;
+ }
}
}