Fix compilation error in DocumentApi::clearMask()

This commit is contained in:
David Capello 2014-09-12 09:30:13 -03:00
parent 77a66c1b87
commit 79320943d7

View File

@ -1208,7 +1208,7 @@ void DocumentApi::clearMask(Cel* cel)
if (!image)
return;
Layer* layer = cel->layer();
LayerImage* layer = cel->layer();
Mask* mask = m_document->mask();
color_t bgcolor = bgColor(layer);
@ -1223,7 +1223,7 @@ void DocumentApi::clearMask(Cel* cel)
// associated image).
else {
ASSERT(layer->isImage());
removeCel(cel);
removeCel(layer, cel);
}
}
else {