From f332b9e3cff07beac35c62f7e7b61807179f3638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Ferrer=20Ortiz?= Date: Sat, 6 Jan 2018 19:50:11 +0100 Subject: [PATCH] Obtain file extension starting from the last . (rather than the first) on Export command --- src/commands/ImportExportCommands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/ImportExportCommands.cpp b/src/commands/ImportExportCommands.cpp index 86fc70cf4..6fc2a897a 100644 --- a/src/commands/ImportExportCommands.cpp +++ b/src/commands/ImportExportCommands.cpp @@ -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!"));