]> git.saurik.com Git - wxWidgets.git/commitdiff
blind fix for wxUSE_WXDIB==0 compilation (replaces patch 1739858)
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Jun 2007 18:14:29 +0000 (18:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 21 Jun 2007 18:14:29 +0000 (18:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/cursor.cpp

index 3e10e778655fc17b313e9e629cf6828323579fbf..5e0bb783f9277d6dd82cdc0068f99d25edea90dc 100644 (file)
@@ -209,17 +209,15 @@ wxCursor::wxCursor(const wxImage& image)
     HCURSOR hcursor = wxBitmapToHCURSOR( wxBitmap(imageSized),
                                          hotSpotX, hotSpotY );
 
-#if wxUSE_WXDIB
     if ( !hcursor )
     {
         wxLogWarning(_("Failed to create cursor."));
         return;
     }
-#endif // wxUSE_WXDIB
 
     m_refData = new wxCursorRefData(hcursor, true /* delete it later */);
 }
-#endif
+#endif // wxUSE_IMAGE
 
 wxCursor::wxCursor(const char WXUNUSED(bits)[],
                    int WXUNUSED(width),