]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/cursor.cpp
precompiled headers fix
[wxWidgets.git] / src / os2 / cursor.cpp
index be4238b9b2303f308a8df0557cbddbf096201421..c1d68f0ffe543b8b4b111f02d1a08c3921b46acb 100644 (file)
@@ -23,6 +23,7 @@
 #endif
 
 #include "wx/os2/private.h"
+#include "wx/os2/wxrsc.h"
 #include "wx/image.h"
 
 #include "assert.h"
@@ -310,6 +311,10 @@ wxCursor::wxCursor(
                                                                   );
             break;
     }
+    //
+    // No need to destroy the stock cursors
+    //
+    ((wxCursorRefData *)m_refData)->m_bDestroyCursor = FALSE;
 } // end of wxCursor::wxCursor
 
 // Global cursor setting