diff --git a/modules/juce_graphics/fonts/juce_TextLayout.cpp b/modules/juce_graphics/fonts/juce_TextLayout.cpp index c062bcebb8..a740e7d42e 100644 --- a/modules/juce_graphics/fonts/juce_TextLayout.cpp +++ b/modules/juce_graphics/fonts/juce_TextLayout.cpp @@ -214,7 +214,7 @@ void TextLayout::addLine (Line* line) void TextLayout::draw (Graphics& g, Rectangle area) const { - auto origin = justification.appliedToRectangle ({ width, getHeight() }, area).getPosition(); + auto origin = justification.appliedToRectangle (Rectangle (width, getHeight()), area).getPosition(); auto& context = g.getInternalContext(); auto clip = context.getClipBounds();