]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/cursor.cpp
rtti api mods added
[wxWidgets.git] / src / os2 / cursor.cpp
index 73a793577c00e57e4edfadce0862af421570009f..a3dddf55b8618bfa72d6058e184e5343dc995d70 100644 (file)
@@ -20,7 +20,6 @@
 #include "wx/app.h"
 #include "wx/cursor.h"
 #include "wx/icon.h"
-#include "wx/resource.h"
 #endif
 
 #include "wx/os2/private.h"
@@ -311,6 +310,10 @@ wxCursor::wxCursor(
                                                                   );
             break;
     }
+    //
+    // No need to destroy the stock cursors
+    //
+    ((wxCursorRefData *)m_refData)->m_bDestroyCursor = FALSE;
 } // end of wxCursor::wxCursor
 
 // Global cursor setting