From 034f884a005ec527210c45aeecefe1bc9422ee3f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Jun 2007 18:14:29 +0000 Subject: [PATCH] blind fix for wxUSE_WXDIB==0 compilation (replaces patch 1739858) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/cursor.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index 998ec54bce..c283ba60bb 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -208,20 +208,15 @@ wxCursor::wxCursor(const wxImage& image) HCURSOR hcursor = wxBitmapToHCURSOR( wxBitmap(imageSized), hotSpotX, hotSpotY ); - -#if wxUSE_WXDIB if ( !hcursor ) { wxLogWarning(_("Failed to create cursor.")); return; } -#else - HCURSOR hcursor = 0; -#endif m_refData = new wxCursorRefData(hcursor, true /* delete it later */); } -#endif +#endif // wxUSE_IMAGE wxCursor::wxCursor(const char WXUNUSED(bits)[], int WXUNUSED(width),