private void HandlePintaCoreActionsImageRotateCWActivated (object sender, EventArgs e) { Document doc = PintaCore.Workspace.ActiveDocument; PintaCore.Tools.Commit (); doc.RotateImageCW (); doc.ResetSelectionPaths (); doc.History.PushNewItem (new InvertHistoryItem (InvertType.Rotate90CW)); }