From 9a048f33b13477fff07c9ee2ff2608241035a758 Mon Sep 17 00:00:00 2001 From: BusinessmanProgrammerSteve Date: Fri, 14 May 2010 21:15:38 +0000 Subject: [PATCH] don't create new labels for space --- src/LabelTrack.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/LabelTrack.cpp b/src/LabelTrack.cpp index 5715cbb9b..0dcd8053b 100644 --- a/src/LabelTrack.cpp +++ b/src/LabelTrack.cpp @@ -1892,6 +1892,11 @@ bool LabelTrack::OnChar(double & newSel0, double & newSel1, wxKeyEvent & event) // If we've reached this point and aren't currently editing, add new label if (mSelIndex < 0) { + // Don't create a new label for a space + if (wxIsspace((wxUChar)charCode)) { + event.Skip(); + return false; + } SetSelected(true); AudacityProject *p = GetActiveProject(); AddLabel(p->mViewInfo.sel0, p->mViewInfo.sel1);