From: Ron Lee Date: Sat, 14 Sep 2002 00:15:30 +0000 (+0000) Subject: define the undefined wxThePrintSetup global. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/21e3b8620aa2b8730e15898a29adebb2c8849b61 define the undefined wxThePrintSetup global. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index 12d2545a27..c3d1807494 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -2341,6 +2341,8 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string, } #if WXWIN_COMPATIBILITY_2_2 +WXDLLEXPORT wxPrintSetupData *wxThePrintSetupData = 0; + void wxInitializePrintSetupData(bool init) { if (init) @@ -2350,9 +2352,8 @@ void wxInitializePrintSetupData(bool init) } else { - if (wxThePrintSetupData) - delete wxThePrintSetupData; - + delete wxThePrintSetupData; + wxThePrintSetupData = (wxPrintSetupData *) NULL; } } @@ -2390,3 +2391,6 @@ void wxPostScriptModule::OnExit() #endif // wxUSE_PRINTING_ARCHITECTURE + + +// vi:sts=4:sw=4:et