diff --git a/modules/juce_graphics/fonts/juce_TextLayout.cpp b/modules/juce_graphics/fonts/juce_TextLayout.cpp index 251e759d9f..5b53e9ae8d 100644 --- a/modules/juce_graphics/fonts/juce_TextLayout.cpp +++ b/modules/juce_graphics/fonts/juce_TextLayout.cpp @@ -506,7 +506,7 @@ namespace TextLayoutHelpers { const int stringLength = text.getText().length(); int rangeStart = 0; - FontAndColour lastFontAndColour (nullptr); + FontAndColour lastFontAndColour (&defaultFont); // Iterate through every character in the string for (int i = 0; i < stringLength; ++i)