Merge remote-tracking branch 'origin/patch'

This commit is contained in:
Ryan Kurtz 2021-08-16 16:10:46 -04:00
commit b55d1049d4

View File

@ -387,7 +387,11 @@ public class ExporterDialog extends DialogComponentProvider implements AddressFa
private String appendExporterFileExtension(String filename) { private String appendExporterFileExtension(String filename) {
Exporter exporter = getSelectedExporter(); Exporter exporter = getSelectedExporter();
String extension = "." + exporter.getDefaultFileExtension(); String extension = exporter.getDefaultFileExtension();
if (extension.isEmpty()) {
return filename;
}
extension = "." + extension;
if (!filename.toLowerCase().endsWith(extension.toLowerCase())) { if (!filename.toLowerCase().endsWith(extension.toLowerCase())) {
return filename + extension; return filename + extension;
} }