[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segfault 2.15.23 Span_bar_stub_engraver

From: David Kastrup
Subject: Re: Segfault 2.15.23 Span_bar_stub_engraver
Date: Thu, 05 Jan 2012 11:24:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

address@hidden writes:

> On Jan 5, 2012, at 7:51 AM, David Kastrup wrote:
>> Grob::get_vertical_axis_group is not protected against the case where g
>> has an axis group interface but no Y_AXIs parent.
> I thought it was.  If g has no Y_AXIS parent, then when
> get_vertical_axis_group (g->get_parent (Y_AXIS)); is called, the first
> test if (!g) will return 0, no?

Grob::get_vertical_axis_group (Grob *g)
  if (!g)
    return 0;
  if (Axis_group_interface::has_interface (g)
      && Align_interface::has_interface (g->get_parent (Y_AXIS)))
    return g;
  return get_vertical_axis_group (g->get_parent (Y_AXIS));


You call Align_interface::has_interface (g->get_parent (Y_AXIS)) here
before you call get_vertical_axis_group.

David Kastrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]