From f4878c7bb8329eaa66a3178fc02eba094f3d035f Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 9 Jan 2019 10:16:51 -0300 Subject: [PATCH] Fix check for SpriteSheetType param in ExportSpriteSheet command --- src/app/commands/cmd_export_sprite_sheet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/commands/cmd_export_sprite_sheet.cpp b/src/app/commands/cmd_export_sprite_sheet.cpp index d3407691b..04ff40941 100644 --- a/src/app/commands/cmd_export_sprite_sheet.cpp +++ b/src/app/commands/cmd_export_sprite_sheet.cpp @@ -636,8 +636,7 @@ void ExportSpriteSheetCommand::onExecute(Context* context) bool askOverwrite = params.askOverwrite(); // Show UI if the user specified it explicitly or the sprite sheet type wasn't specified. if (context->isUIAvailable() && params.ui() && - (params.ui.isSet() || - !params.type() == app::SpriteSheetType::None)) { + (params.ui.isSet() || !params.type.isSet())) { // Copy document preferences to undefined params if (docPref.spriteSheet.defined(true) && !params.type.isSet()) {