mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 08:29:27 +02:00
Bug 2183 - Characters in labels cannot be deleted
Fix: update the actual label (labelStruct is a copy).
This commit is contained in:
parent
65682e7a0c
commit
664452b1a8
@ -1378,6 +1378,7 @@ bool LabelTrackView::DoKeyDown(
|
||||
if (mCurrentCursorPos > 0) {
|
||||
title.erase(mCurrentCursorPos-1, 1);
|
||||
mCurrentCursorPos--;
|
||||
pTrack->SetLabel(mSelIndex, labelStruct);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1407,6 +1408,7 @@ bool LabelTrackView::DoKeyDown(
|
||||
// DELETE one letter
|
||||
if (mCurrentCursorPos < len) {
|
||||
title.erase(mCurrentCursorPos, 1);
|
||||
pTrack->SetLabel(mSelIndex, labelStruct);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user