Mercurial > MadButterfly
changeset 807:5723e5446b7c
Fix incorrect variable name
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 01 Sep 2010 18:04:20 +0800 |
parents | bf54c0408d35 |
children | 9b6c26cf9102 |
files | nodejs/svg.js |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/nodejs/svg.js Wed Sep 01 18:03:45 2010 +0800 +++ b/nodejs/svg.js Wed Sep 01 18:04:20 2010 +0800 @@ -1,4 +1,4 @@ -// -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*- +// -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- // vim: sw=4:ts=8:sts=4 var libxml = require('libxmljs'); var sys=require('sys'); @@ -177,8 +177,8 @@ } else if(_std_colors[color]) { c = _std_colors[color]; paint = this.mb_rt.paint_color_new(c[0], c[1], c[2], alpha); - } else if (fill.substring(0,3) == 'url') { - var id = fill.substring(5,fill.length-1); + } else if (color.substring(0,3) == 'url') { + var id = color.substring(5, color.length-1); var gr = this.gradients[id]; paint = this.mb_rt.paint_linear_new(gr[0],gr[1],gr[2],gr[3]); paint.set_stops(this.stop_ref[id]);