~jpobst/pinta/master

« back to all changes in this revision

Viewing changes to Pinta.Tools/Tools/GradientTool.cs

  • Committer: Cameron White
  • Date: 2013-06-20 01:29:03 UTC
  • mfrom: (818.1.3)
  • Revision ID: git-v1:bb1fa2855135812e84fd8f7e63c0f5ba5edd0189
Merge pull request #62 from ericksson/bugfix_1190899

[Fix for #1190899] - Clicking outside canvas with Move Selected Pixels and Gradient tools.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
                                return;
77
77
                
78
78
                        startpoint = point;
 
79
                        if (!doc.Workspace.PointInCanvas(point))
 
80
                                return;
 
81
 
79
82
                        tracking = true;
80
83
                        button = args.Event.Button;
81
84
                        undo_surface = doc.CurrentUserLayer.Surface.Clone ();