"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Pinta.Tools/Tools/SelectTool.cs" between
pinta-1.7.tar.gz and pinta-1.7.1.tar.gz

About: Pinta is a powerful image drawing and editing program (modeled after Paint.NET).

SelectTool.cs  (pinta-1.7):SelectTool.cs  (pinta-1.7.1)
skipping to change at line 107 skipping to change at line 107
{ {
Document doc = PintaCore.Workspace.ActiveDocument; Document doc = PintaCore.Workspace.ActiveDocument;
// If the user didn't move the mouse, they want to desele ct // If the user didn't move the mouse, they want to desele ct
int tolerance = 0; int tolerance = 0;
if (Math.Abs (reset_origin.X - args.Event.X) <= tolerance && Math.Abs (reset_origin.Y - args.Event.Y) <= tolerance) { if (Math.Abs (reset_origin.X - args.Event.X) <= tolerance && Math.Abs (reset_origin.Y - args.Event.Y) <= tolerance) {
// Mark as being done interactive drawing before invoking the deselect action. // Mark as being done interactive drawing before invoking the deselect action.
// This will allow AfterSelectionChanged() to cle ar the selection. // This will allow AfterSelectionChanged() to cle ar the selection.
is_drawing = false; is_drawing = false;
PintaCore.Actions.Edit.Deselect.Activate ();
if (hist != null) if (hist != null)
{ {
// Roll back any changes made to the sele
ction, e.g. in OnMouseDown().
hist.Undo ();
hist.Dispose(); hist.Dispose();
hist = null; hist = null;
} }
PintaCore.Actions.Edit.Deselect.Activate ();
} else { } else {
ClearHandles (doc.ToolLayer); ClearHandles (doc.ToolLayer);
ReDraw(args.Event.State); ReDraw(args.Event.State);
if (doc.Selection != null) if (doc.Selection != null)
{ {
SelectionModeHandler.PerformSelectionMode (combine_mode, doc .Selection.SelectionPolygons); SelectionModeHandler.PerformSelectionMode (combine_mode, doc .Selection.SelectionPolygons);
doc.Selection.Origin = shape_origin; doc.Selection.Origin = shape_origin;
doc.Selection.End = shape_end; doc.Selection.End = shape_end;
PintaCore.Workspace.Invalidate(); PintaCore.Workspace.Invalidate();
 End of changes. 3 change blocks. 
1 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)