Merge remote-tracking branch

'origin/GP-1201_ryanmkurtz_exporter-extensions' into patch (Closes
#3325)
This commit is contained in:
Ryan Kurtz 2021-08-16 16:02:07 -04:00
commit 9c5c5c5a94

View File

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