RotateZoomLayerAction.cs (pinta-1.7) | : | RotateZoomLayerAction.cs (pinta-1.7.1) | ||
---|---|---|---|---|
skipping to change at line 67 | skipping to change at line 67 | |||
// When parameters are modified, update the display transform of the layer. | // When parameters are modified, update the display transform of the layer. | |||
dialog.EffectDataChanged += (o, args) => | dialog.EffectDataChanged += (o, args) => | |||
{ | { | |||
var xform = ComputeMatrix (data); | var xform = ComputeMatrix (data); | |||
var doc = PintaCore.Workspace.ActiveDocument; | var doc = PintaCore.Workspace.ActiveDocument; | |||
doc.CurrentUserLayer.Transform.InitMatrix (xform); | doc.CurrentUserLayer.Transform.InitMatrix (xform); | |||
PintaCore.Workspace.Invalidate (); | PintaCore.Workspace.Invalidate (); | |||
}; | }; | |||
int response = dialog.Run (); | int response = dialog.Run (); | |||
dialog.Destroy (); | ||||
ClearLivePreview (); | ClearLivePreview (); | |||
if (response == (int)Gtk.ResponseType.Ok && !data.IsDefau lt) | if (response == (int)Gtk.ResponseType.Ok && !data.IsDefau lt) | |||
ApplyTransform (data); | ApplyTransform (data); | |||
dialog.Destroy (); | ||||
} | } | |||
private static void ClearLivePreview () | private static void ClearLivePreview () | |||
{ | { | |||
PintaCore.Workspace.ActiveDocument.CurrentUserLayer.Transform.InitId entity (); | PintaCore.Workspace.ActiveDocument.CurrentUserLayer.Transform.InitId entity (); | |||
PintaCore.Workspace.Invalidate (); | PintaCore.Workspace.Invalidate (); | |||
} | } | |||
private static Matrix ComputeMatrix (RotateZoomData data) | private static Matrix ComputeMatrix (RotateZoomData data) | |||
{ | { | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |