1
0
mirror of https://github.com/niklasvh/html2canvas.git synced 2023-08-10 21:13:10 +03:00

"small bugfix"

This commit is contained in:
MoyuScript 2012-03-05 19:37:54 +00:00
parent f3f9bcdb4d
commit 8350f278fc

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