]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmndata.cpp
Fixed doubled-up key effects in wxTextCtrl by resetting m_lastMsg to 0
[wxWidgets.git] / src / common / cmndata.cpp
index 14f157d3fe25e71e0ad00f68f2f63eba211b9d2f..3510acc06fa1ac30f49c2682482851946e36e013 100644 (file)
@@ -203,16 +203,9 @@ wxPrintData::wxPrintData(const wxPrintData& printData)
 wxPrintData::~wxPrintData()
 {
 #ifdef __WXMSW__
-    HGLOBAL hDevMode = (HGLOBAL) hDevMode;
+    HGLOBAL hDevMode = (HGLOBAL) m_devMode;
     if (hDevMode )
         GlobalFree(hDevMode);
-   /*
-        PRINTDLG *pd = (PRINTDLG *) m_printData;
-        if ( pd && pd->hDevMode )
-        GlobalFree(pd->hDevMode);
-        if ( pd )
-        delete pd;
-    */
 #endif
 }