[ooo-build-commit] .: sw/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Sep 30 09:28:39 PDT 2010


 sw/source/filter/ww8/ww8atr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 708165beed4dc4d5216799591a12dea4336affc3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Sep 30 17:28:32 2010 +0100

    #i112384# crash on export of toc to .doc

diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index 040ac16..316cccf 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -2314,7 +2314,7 @@ void AttributeOutputBase::StartTOX( const SwSection& rSect )
                                 if( sStyle.Len() )
                                 {
                                     SwTxtFmtColl* pColl = GetExport().pDoc->FindTxtFmtCollByName(sStyle);
-                                    if (!pColl->IsAssignedToListLevelOfOutlineStyle() || pColl->GetAssignedOutlineStyleLevel() < nTOXLvl)
+                                    if (!pColl || !pColl->IsAssignedToListLevelOfOutlineStyle() || pColl->GetAssignedOutlineStyleLevel() < nTOXLvl)
                                     {
                                         if( sTOption.Len() )
                                             sTOption += ',';


More information about the ooo-build-commit mailing list