mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 07:13:49 +01:00
Precaution in case a certain assertion fails (I haven't observed it)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user