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

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1770
Date       : Sun Jun 17 20:42:21 BST 2007

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

Apply JLM's fix to imagelists to remove dialog manager assert


Diff:
Index: Trunk/XaraLX/wxOil/dlgmgr.cpp
===================================================================
--- Trunk/XaraLX/wxOil/dlgmgr.cpp	(revision 1769)
+++ Trunk/XaraLX/wxOil/dlgmgr.cpp	(revision 1770)
@@ -7085,13 +7085,11 @@
 
 	}
 
-	pNoteBook->AddPage( pNewPage, Title );
-	// add our image
 	if (pImageList)
-	{
 		pImageList->Add(b);
+	pNoteBook->AddPage( pNewPage, Title );
+	if (pImageList)
 		pNoteBook->SetPageImage(pNoteBook->GetPageCount()-1, pImageList->GetImageCount()-1);
-	}
 
 	return true;
 }


Xara