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