1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fix for single-character TextLayout width.

This commit is contained in:
jules 2013-06-19 19:55:17 +01:00
parent ee3f77bc63
commit b0e1cbd0ee

View file

@ -104,7 +104,7 @@ Range<float> 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;