From 7258d23b810028140988d11a9e08165f387bccf0 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Sat, 2 May 2009 18:51:43 +0000 Subject: [PATCH] something that allowed this to compile with 2.9 wxWidgets --- pcbnew/dialog_print_using_printer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/dialog_print_using_printer.cpp b/pcbnew/dialog_print_using_printer.cpp index ab26c04de6..d2ac4e7ae9 100644 --- a/pcbnew/dialog_print_using_printer.cpp +++ b/pcbnew/dialog_print_using_printer.cpp @@ -467,7 +467,7 @@ void DIALOG_PRINT_USING_PRINTER::OnPrintButtonClick( wxCommandEvent& event ) wxString title = _( "Print" ); EDA_Printout printout( this, m_Parent, title, s_Print_Sheet_Ref ); -#ifndef __WINDOWS__ +#if !defined(__WINDOWS__) && !wxCHECK_VERSION(2,9,0) wxDC* dc = printout.GetDC(); ( (wxPostScriptDC*) dc )->SetResolution( 600 ); // Postscript DC resolution is 600 ppi #endif