X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f16170b09fc2ea9c51a793d3703e3af22872c7d3..a51e79e87db3512823258d487849bb7e7947b700:/src/osx/cocoa/printdlg.mm diff --git a/src/osx/cocoa/printdlg.mm b/src/osx/cocoa/printdlg.mm index f7301dc70a..ef9268b377 100644 --- a/src/osx/cocoa/printdlg.mm +++ b/src/osx/cocoa/printdlg.mm @@ -14,6 +14,7 @@ #if wxUSE_PRINTING_ARCHITECTURE #include "wx/printdlg.h" +#include "wx/testing.h" #ifndef WX_PRECOMP #include "wx/object.h" @@ -59,6 +60,8 @@ void wxOSXCocoaPrintData::UpdateToPMState() int wxMacPrintDialog::ShowModal() { + WX_TESTING_SHOW_MODAL_HOOK(); + m_printDialogData.GetPrintData().ConvertToNative(); int result = wxID_CANCEL; @@ -82,6 +85,8 @@ int wxMacPrintDialog::ShowModal() int wxMacPageSetupDialog::ShowModal() { + WX_TESTING_SHOW_MODAL_HOOK(); + m_pageSetupData.GetPrintData().ConvertToNative(); ((wxOSXCocoaPrintData*)m_pageSetupData.GetPrintData().GetNativeData())->TransferFrom( &m_pageSetupData );