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

Fixed a minor warning.

This commit is contained in:
jules 2015-07-22 20:18:54 +01:00
parent 861d3d9710
commit 6bb8bf3761

View file

@ -343,9 +343,9 @@ void AlertWindow::updateLayout (const bool onlyIncreaseSize)
const int titleH = 24;
const int iconWidth = 80;
LookAndFeel& lookAndFeel = getLookAndFeel();
LookAndFeel& lf = getLookAndFeel();
const Font messageFont (lookAndFeel.getAlertWindowMessageFont());
const Font messageFont (lf.getAlertWindowMessageFont());
const int wid = jmax (messageFont.getStringWidth (text),
messageFont.getStringWidth (getName()));
@ -357,7 +357,7 @@ void AlertWindow::updateLayout (const bool onlyIncreaseSize)
int iconSpace = 0;
AttributedString attributedText;
attributedText.append (getName(), lookAndFeel.getAlertWindowTitleFont());
attributedText.append (getName(), lf.getAlertWindowTitleFont());
if (text.isNotEmpty())
attributedText.append ("\n\n" + text, messageFont);