]> git.saurik.com Git - wxWidgets.git/commitdiff
define the undefined wxThePrintSetup global.
authorRon Lee <ron@debian.org>
Sat, 14 Sep 2002 00:15:30 +0000 (00:15 +0000)
committerRon Lee <ron@debian.org>
Sat, 14 Sep 2002 00:15:30 +0000 (00:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/dcpsg.cpp

index 12d2545a27d569f6be682a593b92064d72aef781..c3d1807494fb2c579c3b914a900d74d23a0eff97 100644 (file)
@@ -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