opnsense-ports/audio/denemo/files/patch-src__ui__mousing.c
Franco Fichtner 2e24bb4a89 */*: sync with upstream
Taken from: FreeBSD
2015-05-04 07:50:47 +02:00

15 lines
777 B
C

--- src/ui/mousing.c.orig 2015-02-09 02:55:09 UTC
+++ src/ui/mousing.c
@@ -219,7 +219,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 *) pi->the_measure->data;