Skip to content

Commit

Permalink
Don't allow shift pixels on locked layer
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Dec 1, 2017
1 parent 21248b9 commit 48fc0cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/commands/cmd_move_mask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ bool MoveMaskCommand::onEnabled(Context* context)
if (m_wrap)
return context->checkFlags(ContextFlags::ActiveDocumentIsWritable |
ContextFlags::HasVisibleMask |
ContextFlags::HasActiveImage);
ContextFlags::HasActiveImage |
ContextFlags::ActiveLayerIsEditable);
else
return (current_editor ? true: false);

Expand Down

0 comments on commit 48fc0cb

Please sign in to comment.