define the undefined wxThePrintSetup global.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee 2002-09-14 00:15:30 +00:00
parent 4356ee76a5
commit 21e3b8620a

View File

@ -2341,6 +2341,8 @@ void wxPostScriptDC::DoGetTextExtent(const wxString& string,
} }
#if WXWIN_COMPATIBILITY_2_2 #if WXWIN_COMPATIBILITY_2_2
WXDLLEXPORT wxPrintSetupData *wxThePrintSetupData = 0;
void wxInitializePrintSetupData(bool init) void wxInitializePrintSetupData(bool init)
{ {
if (init) if (init)
@ -2350,8 +2352,7 @@ void wxInitializePrintSetupData(bool init)
} }
else else
{ {
if (wxThePrintSetupData) delete wxThePrintSetupData;
delete wxThePrintSetupData;
wxThePrintSetupData = (wxPrintSetupData *) NULL; wxThePrintSetupData = (wxPrintSetupData *) NULL;
} }
@ -2390,3 +2391,6 @@ void wxPostScriptModule::OnExit()
#endif #endif
// wxUSE_PRINTING_ARCHITECTURE // wxUSE_PRINTING_ARCHITECTURE
// vi:sts=4:sw=4:et