Paint() code generation

I had a another trouble with the Jucer 1.9 generating

//[/UserPrePaint]g.fillAll (Colour (0xba7d7d7d));

instead of

//[/UserPrePaint]

g.fillAll (Colour (0xba7d7d7d));

very psychedelic results… :slight_smile:

Have you got the tip? Seems to have some returns after it in the latest version here.

I had a quick look:

// call these now, just to make sure they're the first two methods in the list. code.getCallbackCode (String::empty, T("void"), T("paint (Graphics& g)"), false) << "//[UserPrePaint] Add your own custom painting code here..\n//[/UserPrePaint]";

the line feed was actually missing after [/UserPrePaint]

What I mean is that that’s fixed in the tip on sourceforge - I guess you’re using 1.43.