diff --git a/modules/juce_graphics/fonts/juce_TextLayout.cpp b/modules/juce_graphics/fonts/juce_TextLayout.cpp index 7db87132ab..251e759d9f 100644 --- a/modules/juce_graphics/fonts/juce_TextLayout.cpp +++ b/modules/juce_graphics/fonts/juce_TextLayout.cpp @@ -104,7 +104,7 @@ Range TextLayout::Line::getLineBoundsX() const noexcept float minX = run.glyphs.getReference(0).anchor.x; float maxX = minX; - for (int j = run.glyphs.size(); --j > 0;) + for (int j = run.glyphs.size(); --j >= 0;) { const Glyph& glyph = run.glyphs.getReference (j); const float x = glyph.anchor.x;