Skip to content

Commit

Permalink
fix wrong variable reference (ref issue #77)
Browse files Browse the repository at this point in the history
  • Loading branch information
auduno committed May 1, 2017
1 parent 7d41e5e commit d5a1cb0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions clmtrackr.js
Original file line number Diff line number Diff line change
Expand Up @@ -1148,11 +1148,11 @@ var clm = {
//this.draw(document.getElementById('overlay'), currentParameters);

} else {
scaling = candidate.width/modelheight;
scaling = candidate.width/msmodelheight;
//var ccc = document.getElementById('overlay').getContext('2d');
//ccc.strokeRect(candidate.x,candidate.y,candidate.width,candidate.height);
translateX = candidate.x-(xmin*scaling)+0.1*candidate.width;
translateY = candidate.y-(ymin*scaling)+0.25*candidate.height;
translateX = candidate.x-(msxmin*scaling)+0.1*candidate.width;
translateY = candidate.y-(msymin*scaling)+0.25*candidate.height;
currentParameters[0] = scaling-1;
currentParameters[2] = translateX;
currentParameters[3] = translateY;
Expand Down
Loading

0 comments on commit d5a1cb0

Please sign in to comment.