]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/cursor.cpp
fix compilation without wxUSE_STREAMS (closes #10900)
[wxWidgets.git] / src / gtk / cursor.cpp
index a939e16fe4be5318c3c02dbd3b83cf9b5f86291b..9a71c3cc2a1ddc2f99c2e85cef86aace04ceb8d9 100644 (file)
@@ -74,9 +74,9 @@ wxCursor::wxCursor(const wxString& cursor_file,
         return;
     
     // eventually set the hotspot:
-    if (!image.HasOption(wxIMAGE_OPTION_CUR_HOTSPOT_X))
+    if (!img.HasOption(wxIMAGE_OPTION_CUR_HOTSPOT_X))
         img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
-    if (!image.HasOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y))
+    if (!img.HasOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y))
         img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
     
     InitFromImage(img);