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

Feb 22, 2013 at 9:50 AM
Subj.

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 8:42 AM
Up!
Mar 18, 2013 at 11:26 AM
Up!
Can we count on a bug-fix?
Coordinator
Mar 20, 2013 at 1: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 {
        StartSelectingChangedShapes();
        if (!Geometry.IsValid(offsetX, offsetY))
            diagramSetController.Paste(diagram, layerIds, GridSize, GridSize);
        else diagramSetController.Paste(diagram, layerIds, offsetX, offsetY);
    } finally {
        OnShapesInserted(new DiagramPresenterShapesEventArgs(selectedShapes));
        EndSelectingChangedShapes();
    }
}