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

TextLayout: Fix unused variable warning

This commit is contained in:
reuk 2024-06-19 15:06:23 +01:00
parent 453e57bade
commit 308619fb5f
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -380,10 +380,10 @@ static MaxFontAscentAndDescent getMaxFontAscentAndDescentInEnclosingLine (const
MaxFontAscentAndDescent result;
for (const auto& [r, font] : fonts)
for (const auto& pair : fonts)
{
result.ascent = std::max (result.ascent, font.getAscent());
result.descent = std::max (result.descent, font.getDescent());
result.ascent = std::max (result.ascent, pair.value.getAscent());
result.descent = std::max (result.descent, pair.value.getDescent());
}
return result;