--- src/ui/mousing.c.orig 2016-04-10 12:10:21 UTC +++ src/ui/mousing.c @@ -242,7 +242,11 @@ get_placement_from_coordinates (struct p pi->nextmeasure = ((si->system_height > 0.5 || x_to_explain > GPOINTER_TO_INT (mwidthiterator->data)) && pi->measure_number >= rightmeasurenum); pi->the_staff = g_list_nth (si->thescore, pi->staff_number - 1); - pi->the_measure = staff_nth_measure_node (pi->the_staff, pi->measure_number - 1); + if (pi->the_staff != NULL) + pi->the_measure + = staff_nth_measure_node (pi->the_staff, pi->measure_number - 1); + else + pi->the_measure = NULL; if (pi->the_measure != NULL) { /*check to make sure user did not click on empty space */ obj_iterator = (objnode *) ((DenemoMeasure *)pi->the_measure->data)->objects;