diff --git a/modules/juce_gui_basics/widgets/juce_TextEditor.cpp b/modules/juce_gui_basics/widgets/juce_TextEditor.cpp index f7bad6dfac..a9188964cf 100644 --- a/modules/juce_gui_basics/widgets/juce_TextEditor.cpp +++ b/modules/juce_gui_basics/widgets/juce_TextEditor.cpp @@ -1459,7 +1459,7 @@ void TextEditor::drawContent (Graphics& g) selectedTextRanges.getIntersectionsStartingAtZeroWith (glyphsRange)); paragraph->getShapedText().accessTogetherWith (drawGlyphRuns, - glyphColours, + glyphColours.getIntersectionsStartingAtZeroWith (glyphsRange), textSelectionMask.getIntersectionsStartingAtZeroWith (glyphsRange), underlining.getIntersectionsStartingAtZeroWith (glyphsRange)); }