freebsd-ports/audio/denemo/files/patch-src_ui_mousing.c
Mathieu Arnold dc0f1ab8ac Update to 2.0.6.
maintainer timeout.

PR:		209042
Submitted by:	tkato432 yahoo com
Sponsored by:	Absolight
2016-05-09 13:43:40 +00:00

15 lines
805 B
C

--- 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;