Browse Source

Fixed a minor warning.

tags/2021-05-28
jules 10 years ago
parent
commit
6bb8bf3761
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_gui_basics/windows/juce_AlertWindow.cpp

+ 3
- 3
modules/juce_gui_basics/windows/juce_AlertWindow.cpp View File

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


Loading…
Cancel
Save