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

[XaraXtreme-commits] Commit Complete



Commit by  : luke
Repository : xara
Revision   : 715
Date       : Sun Mar 26 18:29:44 BST 2006

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

Fix for the 'error in resource' issue


Diff:
Index: Trunk/XaraLX/wxOil/cartctl.cpp
===================================================================
--- Trunk/XaraLX/wxOil/cartctl.cpp	(revision 714)
+++ Trunk/XaraLX/wxOil/cartctl.cpp	(revision 715)
@@ -511,5 +511,10 @@
 
 bool /*TYPENOTE: Correct*/ wxCamArtControlXmlHandler::CanHandle(wxXmlNode *node)
 {
-	return (IsOfClass(node, wxT("wxCamArtControl")));
+	bool	fOurClass = node->GetPropVal(wxT("class"), wxEmptyString) == wxT("wxCamArtControl");
+	return fOurClass;
+
+	// This doesn't work on some compilers (although it is identical to what's above
+	// just not in a function implemented in a header)
+//	return (IsOfClass(node, wxT("wxCamArtControl")));
 }


Xara