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