]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/cursor.cpp
Generate wxPropertyGrid splitter (column divider) events: wxEVT_PG_COL_BEGIN_DRAG...
[wxWidgets.git] / src / gtk / cursor.cpp
index a939e16fe4be5318c3c02dbd3b83cf9b5f86291b..0dedcab00bc284214fef93b866bb7d4447ef1e1a 100644 (file)
@@ -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);
 }