1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 16:09:28 +02:00

Obtain file extension starting from the last . (rather than the first) on Export command

This commit is contained in:
José Manuel Ferrer Ortiz 2018-01-06 19:50:11 +01:00
parent 4f76a4b5e1
commit f332b9e3cf

View File

@ -92,7 +92,7 @@ bool ExportCommand::Apply(CommandExecutionContext context)
}
// Find the extension and check it's valid
int splitAt = filename.Find(wxT("."));
int splitAt = filename.Find(wxUniChar('.'), true);
if (splitAt < 0)
{
Error(wxT("Export filename must have an extension!"));