diff --git a/src/app/commands/cmd_export_sprite_sheet.cpp b/src/app/commands/cmd_export_sprite_sheet.cpp index 04ff40941..5d83842c8 100644 --- a/src/app/commands/cmd_export_sprite_sheet.cpp +++ b/src/app/commands/cmd_export_sprite_sheet.cpp @@ -828,7 +828,7 @@ void ExportSpriteSheetCommand::onExecute(Context* context) Preferences::instance().removeDocument(newDocument.get()); } - if (docPref.spriteSheet.openGenerated()) { + if (params.openGenerated()) { // Setup a filename for the new document in case that user didn't // save the file/specified one output filename. if (filename.empty()) {