Bug in component's labelTextChanged() code generation


#1

When the code for a component’s labels is regenerated (after making a change to a label’s default value, for example), the resulting labelTextChanged() function is incorrect. Here is the start of such a function generated in ProJucer:

void MyView::labelTextChanged (Label* labelThatHasChanged)
{
    //[UserlabelTextChanged_Pre]
    //[/UserlabelTextChanged_Pre]

    if (labelThatHasChanged == myLabel)
    {

The second operand in that comparison should be “myLabel.get()”, correct? As it is now, I have to add that code manually any time that I make any changes that re-generate the source code.


#2

This has been fixed on the develop branch.