From 70fd22ce9b84f9d3c1d44ffd79baafd370a389fb Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Thu, 5 Jan 2012 11:09:03 +0100 Subject: [PATCH] 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. --- lily/grob.cc | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5