From: Mike Solomon Date: Thu, 5 Jan 2012 10:09:03 +0000 (+0100) Subject: Removes dupliacte test in Grob::internal_vertical_less. X-Git-Tag: release/2.15.24-1~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=70fd22ce9b84f9d3c1d44ffd79baafd370a389fb;p=lilypond.git Removes dupliacte test in Grob::internal_vertical_less. Tests for Y_AXIS parent in Grob::get_vertical_axis_group before calling Align_interface::has_interface. --- diff --git a/lily/grob.cc b/lily/grob.cc index f385ed89f5..57d06515ee 100644 --- a/lily/grob.cc +++ b/lily/grob.cc @@ -620,6 +620,8 @@ Grob::get_vertical_axis_group (Grob *g) { if (!g) return 0; + if (!g->get_parent (Y_AXIS)) + return 0; if (Axis_group_interface::has_interface (g) && Align_interface::has_interface (g->get_parent (Y_AXIS))) return g;