Hi, All!<br><br>Here is a patch that clean-ups/fixes some flaws in layer creation part. I don&#39;t know where to commit it actually: trunk or koffice-ko...<br><br>What it does:<br><br> o Fixes a memory leak in KisMaskManager when the creation of the mask<br>
    is canceled<br> o Removed superfluous setDirty() from both managers those caused double<br>    updates of the image when creating the layer<br> o Moved activateNode functionality to KisNodeManager<br> o Removed deprecated default functions for creating layers and<br>
    masks. Now the parent of the new mask is chosen by<br>    KisNodeManager::getNewNodeLocation.<br clear="all"><br>-- <br>Dmitry Kazakov<br>