[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1303
Date       : Mon Jun 12 22:26:27 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/ccdc.cpp

Don't match null DCs


Diff:
Index: Trunk/XaraLX/wxOil/ccdc.cpp
===================================================================
--- Trunk/XaraLX/wxOil/ccdc.cpp	(revision 1302)
+++ Trunk/XaraLX/wxOil/ccdc.cpp	(revision 1303)
@@ -234,6 +234,9 @@
 
 CCDC *CCDC::ConvertFromNativeDC( CNativeDC* pDC )
 {
+	if (!pDC)
+		return NULL;
+
 	// Scan the DCList to find the item
 	CCDC * pItem = (CCDC*)s_DCList.GetHead();
 	while (pItem)


Xara