mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Component: Fix potential bad access during mouse double click
This commit is contained in:
parent
8fa90784a1
commit
49cc7a0e09
1 changed files with 2 additions and 1 deletions
|
|
@ -2568,7 +2568,8 @@ void Component::internalMouseUp (MouseInputSource source, const PointerState& re
|
|||
// check for double-click
|
||||
if (me.getNumberOfClicks() >= 2)
|
||||
{
|
||||
mouseDoubleClick (checker.eventWithNearestParent());
|
||||
if (checker.nearestNonNullParent() == this)
|
||||
mouseDoubleClick (checker.eventWithNearestParent());
|
||||
|
||||
if (checker.shouldBailOut())
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue