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

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 1448
Date       : Mon Jul 17 00:17:51 BST 2006

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

Make libgnomeprint compile work


Diff:
Index: Trunk/XaraLX/wxOil/prdlgctl.cpp
===================================================================
--- Trunk/XaraLX/wxOil/prdlgctl.cpp	(revision 1447)
+++ Trunk/XaraLX/wxOil/prdlgctl.cpp	(revision 1448)
@@ -135,6 +135,11 @@
 
 #define Swap(a,b)       { (a)^=(b), (b)^=(a), (a)^=(b); }
 
+// This should be in stdwx.h
+#if wxUSE_LIBGNOMEPRINT
+#include <wx/gtk/gnome/gprint.h>
+#endif
+
 PORTNOTE("printing", "Disabled message map stuff")
 #ifndef EXCLUDE_FROM_XARALX
 //---------------------------------
@@ -2252,6 +2257,13 @@
 	// restore the print factory
 	wxPrintFactory::SetPrintFactory(new wxGnomePrintFactory);
 #endif
+
+	if (!(dc->IsKindOf(CLASSINFO(wxPostScriptDC))))
+	{
+		delete dc;
+		ERROR2(NULL, "Something is obstinately refusing to give us a wxPostScriptDC");
+	}
+
 	return dc;
 
 }


Xara