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

Display.ShapesInserted is fired AFTER Display.ShapesSelected - when shape is PASTED

Feb 22, 2013 at 10:50 AM

But when Shape is added to Diagram from Toolbox (and not pasted) - the order of events is correct (first ShapesInserted, then ShapesSelected).
Mar 5, 2013 at 9:42 AM
Mar 18, 2013 at 12:26 PM
Can we count on a bug-fix?
Mar 20, 2013 at 2:47 PM
Sorry for the late answer.
This issue is already fixed in the current (internal) code version:
private void PerformPaste(Diagram diagram, LayerIds layerIds, int offsetX, int offsetY) {
    try {
        if (!Geometry.IsValid(offsetX, offsetY))
            diagramSetController.Paste(diagram, layerIds, GridSize, GridSize);
        else diagramSetController.Paste(diagram, layerIds, offsetX, offsetY);
    } finally {
        OnShapesInserted(new DiagramPresenterShapesEventArgs(selectedShapes));