Browse Source

Added some explicit namespacing for exceptions, and fixed a mouseExit problem with modal components.

tags/2021-05-28
jules 13 years ago
parent
commit
ee4618d863
2 changed files with 5 additions and 2 deletions
  1. +2
    -2
      modules/juce_core/system/juce_PlatformDefs.h
  2. +3
    -0
      modules/juce_gui_basics/components/juce_Component.cpp

+ 2
- 2
modules/juce_core/system/juce_PlatformDefs.h View File

@@ -217,11 +217,11 @@ namespace juce
#define JUCE_CATCH_EXCEPTION \
catch (const std::exception& e) \
{ \
JUCEApplication::sendUnhandledException (&e, __FILE__, __LINE__); \
juce::JUCEApplication::sendUnhandledException (&e, __FILE__, __LINE__); \
} \
catch (...) \
{ \
JUCEApplication::sendUnhandledException (nullptr, __FILE__, __LINE__); \
juce::JUCEApplication::sendUnhandledException (nullptr, __FILE__, __LINE__); \
}
#endif


+ 3
- 0
modules/juce_gui_basics/components/juce_Component.cpp View File

@@ -2310,6 +2310,9 @@ void Component::internalMouseEnter (MouseInputSource& source, const Point<int>&
void Component::internalMouseExit (MouseInputSource& source, const Point<int>& relativePos, const Time& time)
{
if (isCurrentlyBlockedByAnotherModalComponent() && source.getComponentUnderMouse() != this)
return;
if (flags.repaintOnMouseActivityFlag)
repaint();


Loading…
Cancel
Save