Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv31576
Modified Files:
LabelTrack.cpp
Log Message:
Disallow SPACE as first label character
Index: LabelTrack.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/LabelTrack.cpp,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- LabelTrack.cpp 17 Mar 2007 04:21:36 -0000 1.78
+++ LabelTrack.cpp 11 Apr 2007 06:52:27 -0000 1.79
@@ -1261,10 +1261,15 @@
return true;
break;
}
+
+ if (IsGoodLabelCharacter(keyCode, charCode) && !event.CmdDown()) {
+ return true;
+ }
}
- if (IsGoodLabelCharacter(keyCode, charCode) && !event.CmdDown())
+ if (IsGoodLabelFirstCharacter(keyCode, charCode) && !event.CmdDown()) {
return true;
+ }
return false;
}
@@ -2122,7 +2127,7 @@
/// character.
bool LabelTrack::IsGoodLabelFirstCharacter(int keyCode, wxChar charCode)
{
- return (keyCode < WXK_START && !wxIscntrl(charCode)) ||
+ return (keyCode < WXK_START && !wxIscntrl(charCode) && (keyCode !=
WXK_SPACE)) ||
keyCode > WXK_COMMAND;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs