X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a75e76f399bc91b3f841e7f77140e83f9bd5958..ba670bae4ec5b272fdf0f45bf00e194741742a7e:/src/os2/cursor.cpp diff --git a/src/os2/cursor.cpp b/src/os2/cursor.cpp index 73a793577c..c1d68f0ffe 100644 --- a/src/os2/cursor.cpp +++ b/src/os2/cursor.cpp @@ -20,10 +20,10 @@ #include "wx/app.h" #include "wx/cursor.h" #include "wx/icon.h" -#include "wx/resource.h" #endif #include "wx/os2/private.h" +#include "wx/os2/wxrsc.h" #include "wx/image.h" #include "assert.h" @@ -311,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