"small bugfix"

This commit is contained in:
André Fiedler 2012-03-05 19:37:54 +00:00
parent e479c952f7
commit ae8d499942

View File

@ -115,7 +115,7 @@ _html2canvas.Generate.Gradient = function(src, bounds) {
img = new Image(); img = new Image();
if(gradient){ if(gradient && gradient.type === 'linear'){
lingrad = ctx.createLinearGradient(gradient.x0, gradient.y0, gradient.x1, gradient.y1); lingrad = ctx.createLinearGradient(gradient.x0, gradient.y0, gradient.x1, gradient.y1);
for (i = 0, len = gradient.colorStops.length; i < len; i+=1) { for (i = 0, len = gradient.colorStops.length; i < len; i+=1) {