removes ratio, since it'll never be called

This commit is contained in:
Francisco Dans 2014-12-30 11:00:26 +01:00
parent ead86bad00
commit 2f8443fe6e

View File

@ -75,9 +75,8 @@
var img_name = st['point-file'] || st['marker-file'];
var img = new Image();
img.src = img_name;
var ratio = img.height/img.width;
var w = st['marker-width'] || img.width;
var h = st['marker-width'] || st['marker-height'] || w*ratio;
var h = st['marker-width'] || st['marker-height'];
ctx.drawImage(img, 0, 0, w, h);
}