Skip to content

Commit

Permalink
Merge pull request #129 from tdaffin/rounding
Browse files Browse the repository at this point in the history
Fix a rounding problem causing the wrong pixel to be clicked on when drawing lines when zoomed in
  • Loading branch information
cameronwhite committed Feb 11, 2018
2 parents 93a341d + 9ede955 commit bebb479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pinta.Core/Classes/DocumentWorkspace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public Cairo.PointD WindowPointToCanvas (double x, double y)
ScaleFactor sf = new ScaleFactor (PintaCore.Workspace.ImageSize.Width,
PintaCore.Workspace.CanvasSize.Width);
Cairo.PointD pt = sf.ScalePoint (new Cairo.PointD (x - Offset.X, y - Offset.Y));
return new Cairo.PointD((int)pt.X, (int)pt.Y);
return new Cairo.PointD(pt.X, pt.Y);
}

/// <summary>
Expand Down

0 comments on commit bebb479

Please sign in to comment.