Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucalianas committed Dec 6, 2016
1 parent 71876db commit 80bdde4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function Shape(id, transform_matrix) {
};

this.getCoveragePercentage = function(shape) {
var shape_area = shape.getArea();
var shape_area = shape.getArea(1);
if ((typeof this.paper_shape !== 'undefined') && (typeof shape_area !== 'undefined')) {
var intersection = this._shapeToPath().intersect(shape._shapeToPath());
// passing 1 as pixel size because we only need area in pixels to get the coverage ratio
Expand Down

0 comments on commit 80bdde4

Please sign in to comment.