1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02:00

Fix ExtImportFilter rule editor space trimming.

* Won't ask more than once
* Actually trims both leading and trailing spaces
This commit is contained in:
LRN1986 2010-04-10 16:24:04 +00:00
parent b6972df871
commit a61f711f88

View File

@ -435,9 +435,9 @@ void ExtImportPrefs::OnRuleTableEdit (wxGridEvent& event)
for (size_t i = 0; i < vals.Count(); i++)
{
wxString trimmed = vals[i];
trimmed.Trim();
trimmed.Trim(true);
trimmed.Trim().Trim(false);
if (trimmed.Cmp(vals[i]) != 0)
{
if (!askedAboutSpaces)
@ -448,6 +448,7 @@ the items. They are likely to break the pattern matching. Unless you know \
what you are doing, it is recommended to trim spaces. Do you want \
Audacity to trim spaces for you?"
),_("Spaces detected"), wxYES_NO);
askedAboutSpaces = true;
}
if (fixSpaces != wxYES)
{