blob: 41e8c13d822d3a31ef88ee85a011637cd9ed9328 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- 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;
|