1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-09 16:41:14 +02:00

Fix assertion when cancelling from selection drag

This commit is contained in:
Paul Licameli 2017-07-15 20:50:00 -04:00
parent 7a038c9e51
commit e55393af69

View File

@ -792,10 +792,12 @@ bool TrackPanel::HandleEscapeKey(bool down)
if (!down)
return false;
auto target = Target();
if (target && target->HasEscape() && target->Escape()) {
HandleCursorForPresentMouseState(false);
return true;
{
auto target = Target();
if (target && target->HasEscape() && target->Escape()) {
HandleCursorForPresentMouseState(false);
return true;
}
}
if (mUIHandle) {