Bug in 8.0.7: Setting text colour in TextEditor has strange behaviour

I just updated to 8.0.7 and suddenly the text colour of TextEditor behaves strangely.

I add coloured text like this:

textEditor.setColour(juce::TextEditor::textColourId, wantedColour);
textEditor.moveCaretToEnd();
textEditor.insertTextAtCaret(wantedText + "\n");

In 8.0.6 every line has a different colour.

In 8.0.7 it suddenly looks like this:
juce_bug_807

I guess that’s not what’s supposed to happen, right?

Edit: And while I’m at it, textEditor.setLineSpacing(...) does not seem to work anymore either.

Thank you for reporting. We’re working on a fix.

With the following commit on develop these issues have been addressed
https://github.com/juce-framework/JUCE-dev/commit/6a53ddcb77f7568e3d37113325d8c3d993fe7c9d

1 Like

Just tested it and it all works just fine now! Thank you very much for the fast fix!

1 Like

Thanks for this, I just was moving setLineSpacing around from constructor to resized wondering why it didn’t work!