1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 07:40:23 +02:00

bug 195 - fixed

This commit is contained in:
v.audacity 2010-08-03 01:46:37 +00:00
parent e8d37360c1
commit 2def1e7f51
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ BlockFile *SilentBlockFile::BuildFromXML(DirManager &dm, const wxChar **attrs)
if (!wxStrcmp(attr, wxT("len")) &&
XMLValueChecker::IsGoodInt(strValue) &&
strValue.ToLong(&nValue) &&
len > 0)
nValue > 0)
len = nValue;
}

View File

@ -498,7 +498,7 @@ BlockFile *SimpleBlockFile::BuildFromXML(DirManager &dm, const wxChar **attrs)
dm.AssignFile(fileName,value,FALSE);
else if (!wxStrcmp(attr, wxT("len")) &&
XMLValueChecker::IsGoodInt(strValue) && strValue.ToLong(&nValue) &&
len > 0)
nValue > 0)
len = nValue;
else if (XMLValueChecker::IsGoodString(strValue) && Internat::CompatibleToDouble(strValue, &dblValue))
{ // double parameters