diff --git a/src/ui/widget/ink-spinscale.cpp b/src/ui/widget/ink-spinscale.cpp index 6fd79c9afa12cf6f51ae88d81ca61f273d9a0ca5..12928ea607e0faccc343541379c465893bf59f22 100644 --- a/src/ui/widget/ink-spinscale.cpp +++ b/src/ui/widget/ink-spinscale.cpp @@ -147,7 +147,8 @@ InkScale::on_motion_notify_event(GdkEventMotion* motion_event) { // Can't see how to do this the C++ way since GdkEventMotion // is a structure with a C window member. There is a gdkmm // wrapping function for Gdk::EventMotion but only in unstable. - gdk_window_set_cursor( motion_event->window, cursor->gobj() ); + if (cursor) + gdk_window_set_cursor( motion_event->window, cursor->gobj() ); } return false;