From 6eff49a629f7c8084a70b0c2ca6b42b887f341db Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 11 Dec 2017 11:29:43 +0000 Subject: [PATCH] Workaround for a Visual Studio compiler bug --- modules/juce_gui_basics/windows/juce_TooltipWindow.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp b/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp index 4d8b31779a..cf863fe2d1 100644 --- a/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp +++ b/modules/juce_gui_basics/windows/juce_TooltipWindow.cpp @@ -105,9 +105,14 @@ void TooltipWindow::displayTip (Point 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);