From 389ea666e5d817138fde4629a05ee249210018aa Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 8 Jun 2016 15:01:02 -0300 Subject: [PATCH] Fix crash trying to paint in a group layer --- src/app/ui/editor/standby_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/ui/editor/standby_state.cpp b/src/app/ui/editor/standby_state.cpp index 66c323bb9..951c3d1b2 100644 --- a/src/app/ui/editor/standby_state.cpp +++ b/src/app/ui/editor/standby_state.cpp @@ -297,7 +297,7 @@ bool StandbyState::onMouseDown(Editor* editor, MouseMessage* msg) } // Start the Tool-Loop - if (layer) { + if (layer && layer->isImage()) { // Disable layer edges to avoid showing the modified cel // information by ExpandCelCanvas (i.e. the cel origin is changed // to 0,0 coordinate.)