Jucer Bug?

I think I found a Jucer bug, whilst shamelessly ripping it off :wink:


class ComponentUndoableAction : public UndoableAction



ComponentUndoableAction (ComponentType* const comp,

                         ComponentLayout& layout_)

    : layout (layout_),

      componentIndex (layout_.indexOfComponent (comp))

[/code] It seems that the comp member doesn’t get set - and the assert doesn’t catch it because the incoming value masks it. Maybe there’s something else going on (beyond my ken), but in my ‘version’ I needed to set that.


There isn’t a “comp” member. It’s just a local variable (…?)

Aha. Kludged myself into another hole. I must have added a member myself, so that all the sub-classes had it.