From 91665c62c39ce4d8274866049e334686fe767887 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 27 May 2019 23:31:10 -0300 Subject: [PATCH] Fix bug showing invalid warning in Edit > Pref when "keep edited sprite data lifespan" wasn't modified --- src/app/commands/cmd_options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/commands/cmd_options.cpp b/src/app/commands/cmd_options.cpp index ebddc77bb..1aec9500c 100644 --- a/src/app/commands/cmd_options.cpp +++ b/src/app/commands/cmd_options.cpp @@ -488,7 +488,7 @@ public: int newLifespan = base::convert_to(keepEditedSpriteDataLifespan()->getValue()); if (keepEditedSpriteData()->isSelected() != m_pref.general.keepEditedSpriteData() || - newLifespan != m_pref.general.dataRecoveryPeriod()) { + newLifespan != m_pref.general.keepEditedSpriteDataLifespan()) { m_pref.general.keepEditedSpriteData(keepEditedSpriteData()->isSelected()); m_pref.general.keepEditedSpriteDataLifespan(newLifespan);