diff --git a/extras/Projucer/Source/ComponentEditor/Components/jucer_LabelHandler.h b/extras/Projucer/Source/ComponentEditor/Components/jucer_LabelHandler.h index 2bfc6bde3f..50872603a6 100644 --- a/extras/Projucer/Source/ComponentEditor/Components/jucer_LabelHandler.h +++ b/extras/Projucer/Source/ComponentEditor/Components/jucer_LabelHandler.h @@ -168,8 +168,8 @@ public: const String userCodeComment ("UserLabelCode_" + memberVariableName); callback - << "if (labelThatHasChanged == " << memberVariableName - << ")\n{\n //[" << userCodeComment << "] -- add your label text handling code here..\n //[/" << userCodeComment << "]\n}\n"; + << "if (labelThatHasChanged == " << memberVariableName << ".get())\n" + << "{\n //[" << userCodeComment << "] -- add your label text handling code here..\n //[/" << userCodeComment << "]\n}\n"; } }