Merge pull request #1707 from Gasparoken/fix-selection-edges

Fix: Automatic Show Selection Edges with Cmd+A (#1614)
This commit is contained in:
David Capello 2018-04-13 16:04:46 -03:00 committed by GitHub
commit eeb8069226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,7 @@
#include "app/transaction.h"
#include "doc/mask.h"
#include "doc/sprite.h"
#include "app/pref/preferences.h"
namespace app {
@ -54,6 +55,10 @@ void MaskAllCommand::onExecute(Context* context)
document->resetTransformation();
document->generateMaskBoundaries();
DocumentPreferences& docPref = Preferences::instance().document(document);
docPref.show.selectionEdges(true);
update_screen_for_document(document);
}