incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhan...@apache.org
Subject svn commit: r1243381 - /incubator/ooo/trunk/main/sd/source/ui/func/fusumry.cxx
Date Mon, 13 Feb 2012 00:48:58 GMT
Author: zhangjf
Date: Mon Feb 13 00:48:57 2012
New Revision: 1243381

URL: http://svn.apache.org/viewvc?rev=1243381&view=rev
Log:
#118876#, Add check if the OutlinerParaObject is created successfully

Modified:
    incubator/ooo/trunk/main/sd/source/ui/func/fusumry.cxx

Modified: incubator/ooo/trunk/main/sd/source/ui/func/fusumry.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sd/source/ui/func/fusumry.cxx?rev=1243381&r1=1243380&r2=1243381&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sd/source/ui/func/fusumry.cxx (original)
+++ incubator/ooo/trunk/main/sd/source/ui/func/fusumry.cxx Mon Feb 13 00:48:57 2012
@@ -192,8 +192,12 @@ void FuSummaryPage::DoExecute( SfxReques
 				* Text hinzufuegen
 				**************************************************************/
 				OutlinerParaObject* pParaObj = pTextObj->GetOutlinerParaObject();
-				pParaObj->SetOutlinerMode( OUTLINERMODE_OUTLINEOBJECT );
-				pOutl->AddText(*pParaObj);
+				// #118876#, check if the OutlinerParaObject is created successfully
+				if( pParaObj )
+				{
+					pParaObj->SetOutlinerMode( OUTLINERMODE_OUTLINEOBJECT );
+					pOutl->AddText(*pParaObj);
+				}
 			}
 		}
 	}



Mime
View raw message