From 4242c4eef3401ab671df026765075d303c7bf061 Mon Sep 17 00:00:00 2001 From: Gaspar Capello Date: Fri, 13 Apr 2018 15:24:42 -0300 Subject: [PATCH] Fix: Automatic Show Selection Edges with Cmd+A (#1614) --- src/app/commands/cmd_mask_all.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/commands/cmd_mask_all.cpp b/src/app/commands/cmd_mask_all.cpp index daab1b8f4..6c731b09c 100644 --- a/src/app/commands/cmd_mask_all.cpp +++ b/src/app/commands/cmd_mask_all.cpp @@ -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); }