mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 12:54:40 +00:00
Fix bug in Editor::drawMaskSafe() where mask in hidden editors were drawn.
This commit is contained in:
parent
8a40228ab3
commit
ef0cbf0e94
@ -457,7 +457,9 @@ void Editor::drawMask()
|
|||||||
|
|
||||||
void Editor::drawMaskSafe()
|
void Editor::drawMaskSafe()
|
||||||
{
|
{
|
||||||
if (m_document && m_document->getBoundariesSegments()) {
|
if (isVisible() &&
|
||||||
|
m_document &&
|
||||||
|
m_document->getBoundariesSegments()) {
|
||||||
int thick = m_cursor_thick;
|
int thick = m_cursor_thick;
|
||||||
|
|
||||||
JRegion region = jwidget_get_drawable_region(this, JI_GDR_CUTTOPWINDOWS);
|
JRegion region = jwidget_get_drawable_region(this, JI_GDR_CUTTOPWINDOWS);
|
||||||
|
Loading…
Reference in New Issue
Block a user