Update of /cvsroot/audacity/audacity-src/src/commands
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16861/src/commands

Modified Files:
        CommandManager.cpp 
Log Message:
Strip leading blanks from label.  I'm not sure how I broke this, but I'm 
thinking it was when I removed the right justification.

Index: CommandManager.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/commands/CommandManager.cpp,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- CommandManager.cpp  23 Mar 2009 06:04:27 -0000      1.60
+++ CommandManager.cpp  23 Mar 2009 17:59:04 -0000      1.61
@@ -582,7 +582,7 @@
    wxString labelPrefix;
    if( !mSubMenuList.IsEmpty() )
       labelPrefix = mSubMenuList[ mSubMenuList.GetCount() - 1 ]->name;
-   
+
    // wxMac 2.5 and higher will do special things with the
    // Preferences, Exit (Quit), and About menu items,
    // if we give them the right IDs.
@@ -997,7 +997,7 @@
    if (!entry)
       return wxT("");
 
-   return entry->labelPrefix + wxT(" ") + entry->label;
+   return wxString(entry->labelPrefix + wxT(" ") + 
entry->label).Trim(false).Trim(true);
 }
 
 wxString CommandManager::GetKeyFromName(wxString name)


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to