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

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1185
Date       : Wed May 24 21:34:53 BST 2006

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

Don't compile in error reports if they aren't defined in wx


Diff:
Index: Trunk/XaraLX/wxOil/errors.cpp
===================================================================
--- Trunk/XaraLX/wxOil/errors.cpp	(revision 1184)
+++ Trunk/XaraLX/wxOil/errors.cpp	(revision 1185)
@@ -372,6 +372,7 @@
 		}
 		else if (id == _R(IDS_ERRORBOX_DEBUGREPORT))
 		{
+#if wxUSE_DEBUGREPORT && wxUSE_XML
 			wxDebugReport report;
 			wxDebugReportPreviewStd preview;
 		
@@ -379,6 +380,9 @@
 		
 			if ( preview.Show(report) )
 				report.Process();
+#else
+			::wxMessageBox(_T("Your build was not compiled to support debug reports"));
+#endif
 		}
 		else
 		{


Xara