mirror of
https://github.com/cookiengineer/audacity
synced 2025-09-18 00:50:52 +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) {
|
if (mCurrentCursorPos > 0) {
|
||||||
title.erase(mCurrentCursorPos-1, 1);
|
title.erase(mCurrentCursorPos-1, 1);
|
||||||
mCurrentCursorPos--;
|
mCurrentCursorPos--;
|
||||||
|
pTrack->SetLabel(mSelIndex, labelStruct);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1407,6 +1408,7 @@ bool LabelTrackView::DoKeyDown(
|
|||||||
// DELETE one letter
|
// DELETE one letter
|
||||||
if (mCurrentCursorPos < len) {
|
if (mCurrentCursorPos < len) {
|
||||||
title.erase(mCurrentCursorPos, 1);
|
title.erase(mCurrentCursorPos, 1);
|
||||||
|
pTrack->SetLabel(mSelIndex, labelStruct);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user