mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-14 13:21:34 +00:00
Merge b211d7e730a22ca5925f3026d9d89fa002ed2a8b into c949f4a5a6ca6adb411674583a57551ff99b8e88
This commit is contained in:
commit
b317d6239f
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user