This is in preparation for post-export screenshots:
A possibility to get a file-path, independent of the format.
filename_empty = false;
}
- if (include_format_name) {
+ if (include_format_name && format) {
path += filename_empty ? "" : "_";
path += format->name();
filename_empty = false;
path = "export";
}
- path += ".";
- path += format->extension ();
+ if (format) {
+ path += ".";
+ path += format->extension ();
+ }
path = legalize_for_universal_path (path);