Merge b211d7e730a22ca5925f3026d9d89fa002ed2a8b into c949f4a5a6ca6adb411674583a57551ff99b8e88

This commit is contained in:
Gaspar Capello 2025-03-06 17:15:55 +04:00 committed by GitHub
commit b317d6239f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2019-2024 Igara Studio S.A.
// Copyright (C) 2019-2025 Igara Studio S.A.
// Copyright (C) 2018 David Capello
//
// This program is distributed under the terms of
@ -46,7 +46,7 @@ ExportFileWindow::ExportFileWindow(const Doc* doc)
base = base::join_path(basePath, base::get_file_title(base));
std::string newFn = base::replace_extension(base, defaultExtension());
if (newFn == base) {
if (newFn == base::replace_extension(base, base::get_file_extension(doc->filename()))) {
newFn = base::join_path(
base::get_file_path(newFn),
base::get_file_title(newFn) + "-export." + base::get_file_extension(newFn));