OSX: Fix for bug #717381 - Print Preview hangs
This commit is contained in:
parent
6b7ab76199
commit
a3ec2e24a2
|
@ -94,6 +94,11 @@ DIALOG_PRINT_USING_PRINTER::DIALOG_PRINT_USING_PRINTER( SCH_EDIT_FRAME* aParent
|
||||||
|
|
||||||
m_checkReference->SetValue( aParent->GetPrintSheetReference() );
|
m_checkReference->SetValue( aParent->GetPrintSheetReference() );
|
||||||
m_checkMonochrome->SetValue( aParent->GetPrintMonochrome() );
|
m_checkMonochrome->SetValue( aParent->GetPrintMonochrome() );
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
/* Problems with modal on wx-2.9 - Anyway preview is standard for OSX */
|
||||||
|
m_buttonPreview->Hide();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,10 @@ DIALOG_PRINT_USING_PRINTER::DIALOG_PRINT_USING_PRINTER( GERBVIEW_FRAME* parent )
|
||||||
{
|
{
|
||||||
GetSizer()->SetSizeHints( this );
|
GetSizer()->SetSizeHints( this );
|
||||||
}
|
}
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
/* Problems with modal on wx-2.9 - Anyway preview is standard for OSX */
|
||||||
|
m_buttonPreview->Hide();
|
||||||
|
#endif
|
||||||
|
|
||||||
m_buttonPrint->SetDefault();
|
m_buttonPrint->SetDefault();
|
||||||
}
|
}
|
||||||
|
|
|
@ -129,6 +129,11 @@ DIALOG_PRINT_USING_PRINTER::DIALOG_PRINT_USING_PRINTER( PCB_EDIT_FRAME* parent )
|
||||||
}
|
}
|
||||||
|
|
||||||
Center();
|
Center();
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
/* Problems with modal on wx-2.9 - Anyway preview is standard for OSX */
|
||||||
|
m_buttonPreview->Hide();
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue