diff framework/Document.h @ 333:0c37405cf579 tonioni

Comment on layer ownership
author Chris Cannam
date Wed, 05 Mar 2014 10:37:30 +0000
parents f72d58d1ccb0
children dd07d48d7d4f
line wrap: on
line diff
--- a/framework/Document.h	Wed Mar 05 09:45:10 2014 +0000
+++ b/framework/Document.h	Wed Mar 05 10:37:30 2014 +0000
@@ -239,7 +239,9 @@
     void addLayerToView(View *, Layer *);
 
     /**
-     * Remove the given layer from the given view.
+     * Remove the given layer from the given view. Ownership of the
+     * layer is transferred to a command object on the undo stack, and
+     * the layer will be deleted when the undo stack is pruned.
      */
     void removeLayerFromView(View *, Layer *);