mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 08:59:28 +02:00
Obtain file extension starting from the last . (rather than the first) on Export command
This commit is contained in:
parent
4f76a4b5e1
commit
f332b9e3cf
@ -92,7 +92,7 @@ bool ExportCommand::Apply(CommandExecutionContext context)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Find the extension and check it's valid
|
// Find the extension and check it's valid
|
||||||
int splitAt = filename.Find(wxT("."));
|
int splitAt = filename.Find(wxUniChar('.'), true);
|
||||||
if (splitAt < 0)
|
if (splitAt < 0)
|
||||||
{
|
{
|
||||||
Error(wxT("Export filename must have an extension!"));
|
Error(wxT("Export filename must have an extension!"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user