Browse Source

Workaround for a Visual Studio compiler bug

tags/2021-05-28
jules 7 years ago
parent
commit
6eff49a629
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      modules/juce_gui_basics/windows/juce_TooltipWindow.cpp

+ 7
- 2
modules/juce_gui_basics/windows/juce_TooltipWindow.cpp View File

@@ -105,9 +105,14 @@ void TooltipWindow::displayTip (Point<int> screenPos, const String& tip)
activeTooltipWindows.addIfNotAlreadyThere (this);
for (auto* w : activeTooltipWindows)
{
if (w != this && w->tipShowing == tipShowing)
jassertfalse; // Looks like you have more than one TooltipWindow showing the same tip.
// Be careful not to create more than one instance of this class!
{
// Looks like you have more than one TooltipWindow showing the same tip..
// Be careful not to create more than one instance of this class!
jassertfalse;
}
}
#endif
toFront (false);


Loading…
Cancel
Save