~jpobst/pinta/master

« back to all changes in this revision

Viewing changes to Pinta.Tools/Tools/BaseTransformTool.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:
70
70
                                                     Gtk.ButtonPressEventArgs args,
71
71
                                                     Cairo.PointD point)
72
72
                {
 
73
                        Document doc = PintaCore.Workspace.ActiveDocument;
 
74
 
73
75
                        if(is_dragging || is_rotating)
74
76
                                return;
75
77
 
76
78
                        original_point = point;
 
79
                        if (!doc.Workspace.PointInCanvas(point))
 
80
                                return;
77
81
 
78
82
                        if(args.Event.Button == GtkExtensions.MouseRightButton)
79
83
                        {