X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6764050d805a7e7575ba7126e2f78bd64db8117..5405bfb439dcb552bd79e6f35c347498811f85ef:/src/gtk/cursor.cpp diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index a939e16fe4..0dedcab00b 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -72,13 +72,13 @@ wxCursor::wxCursor(const wxString& cursor_file, wxImage img; if (!img.LoadFile(cursor_file, type)) 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); }