mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Precaution in case a certain assertion fails (I haven't observed it)
This commit is contained in:
parent
fcd175183f
commit
48889d36f0
@ -383,7 +383,12 @@ UIHandlePtr SelectHandle::HitTest
|
||||
bool oldUseSnap = true;
|
||||
if (old) {
|
||||
// It should not have started listening to timer events
|
||||
wxASSERT( !old->mTimerHandler );
|
||||
if( old->mTimerHandler ) {
|
||||
wxASSERT(false);
|
||||
// Handle this eventuality anyway, don't leave a dangling back-pointer
|
||||
// in the attached event handler.
|
||||
old->mTimerHandler.reset();
|
||||
}
|
||||
oldUseSnap = old->mUseSnap;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user