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

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 906
Date       : Wed Apr 26 18:25:52 BST 2006

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

See if this fixes Mark Loumbert's issue


Diff:
Index: Trunk/XaraLX/wxOil/drawctl.cpp
===================================================================
--- Trunk/XaraLX/wxOil/drawctl.cpp	(revision 905)
+++ Trunk/XaraLX/wxOil/drawctl.cpp	(revision 906)
@@ -354,5 +354,10 @@
 
 bool /*TYPENOTE: Correct*/ wxCamDrawControlXmlHandler::CanHandle(wxXmlNode *node)
 {
-	return (IsOfClass(node, wxT("wxCamDrawControl")));
+	bool	fOurClass = node->GetPropVal(wxT("class"), wxEmptyString) == wxT("wxCamDrawControl");
+	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("wxCamDrawControl")));
 }


Xara