]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/colordlg.cpp
Fix crash when canceling printing in wxMSW.
[wxWidgets.git] / src / msw / colordlg.cpp
index 0b8d20706f05ec1fb910cd0c0ca760c02ac886cc..d3a8eaf655650f001cb729bac97a7f3ed99b5b53 100644 (file)
@@ -34,8 +34,6 @@
     #include "wx/colour.h"
     #include "wx/gdicmn.h"
     #include "wx/utils.h"
-    #include "wx/dialog.h"
-    #include "wx/cmndata.h"
     #include "wx/math.h"
 #endif
 
@@ -81,7 +79,7 @@ wxColourDialogHookProc(HWND hwnd,
 
         const wxString title = dialog->GetTitle();
         if ( !title.empty() )
-            ::SetWindowText(hwnd, title.wx_str());
+            ::SetWindowText(hwnd, title.t_str());
 
         dialog->MSWOnInitDone((WXHWND)hwnd);
     }