From e23969f3ce1cdd3b642550299b03ad6d4a0d6a52 Mon Sep 17 00:00:00 2001 From: attila Date: Tue, 22 Apr 2025 11:17:43 +0200 Subject: [PATCH] TextEditor: Fix drawing text in the wrong colour --- modules/juce_gui_basics/widgets/juce_TextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }