]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/cursor.cpp
Check for menu title being non-empty when appending it to the menu bar.
[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);
 }