This project has moved and is read-only. For the latest updates, please go here.

Cutting a shape which has no model brings up an error

Feb 22, 2013 at 10:03 AM
The reason is in the Dataweb.NShape.Controllers.DiagramSetController.Cut() method - cutModelObjects is not checked for null here:
// Restore deleted model objects so they are available for pasting (one or more times)
foreach (KeyValuePair<Shape, IModelObject> item in cutModelObjects)
    item.Key.ModelObject = item.Value;
And cutModelObjects will be null if argument withModelObjects is set to false.
Mar 1, 2013 at 8:03 AM