Jucer Bug?


#1

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

[code]template

class ComponentUndoableAction : public UndoableAction

{

public:

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.

Bruce


#2

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


#3

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

Thanks


#4