Skip to content

Commit

Permalink
Fix arc position after drag. Relates to #8.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Jan 26, 2015
1 parent 9292e2a commit 0cab5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/protractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,6 @@ dwv.tool.UpdateProtractor = function (anchor/*, image*/)
karc.outerRadius(radius);
karc.angle(angle);
karc.rotation(-inclination);
var arcPos = { 'x': mx, 'y': my };
var arcPos = { 'x': mid.x(), 'y': mid.y() };
karc.position(arcPos);
};

0 comments on commit 0cab5c4

Please sign in to comment.