1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-23 22:51:23 +01:00

Bug 2183 - Characters in labels cannot be deleted

Fix: update the actual label (labelStruct is a copy).
This commit is contained in:
David Bailes
2019-08-03 09:13:53 +01:00
parent 65682e7a0c
commit 664452b1a8

View File

@@ -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);
}
}
}