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:
parent
ee3f77bc63
commit
b0e1cbd0ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue