Skip to content

Commit

Permalink
fix an error when x and y scaling are different
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Feb 28, 2019
1 parent fcd0ba3 commit 533a178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grobid-service/src/main/resources/web/grobid/grobid.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,8 +883,8 @@ var grobid = (function($) {

var canvasHeight = canvas.height();
var canvasWidth = canvas.width();
var scale_x = canvasHeight / page_height;
var scale_y = canvasWidth / page_width;
var scale_y = canvasHeight / page_height;
var scale_x = canvasWidth / page_width;

var x = thePos.x * scale_x;
var y = thePos.y * scale_y;
Expand Down

0 comments on commit 533a178

Please sign in to comment.