Fix problem where the cel opacity slider in StatusBar was not activated

After creating a new cel from a tool loop, we have to generate an
ActiveSiteChange notification (because now we have a cel in the active
position). In this way the StatusBar can update/enable the opacity slider.
This commit is contained in:
David Capello 2015-05-06 17:08:08 -03:00
parent c6c7439566
commit cb5fd3963f

View File

@ -148,6 +148,11 @@ void ExpandCelCanvas::commit()
// And finally we add the cel again in the layer.
m_transaction.execute(new cmd::AddCel(m_layer, m_cel));
// As we've created the cel, the active context site has changed
// (context->site().cel() to be precise).
if (m_document->context())
m_document->context()->notifyActiveSiteChanged();
}
else if (m_celImage) {
// If the size of each image is the same, we can create an undo