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
This commit is contained in:
Vadim Zeitlin
2007-06-21 18:14:29 +00:00
parent cd8dea93d5
commit 034f884a00

View File

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