# HG changeset patch # User Thinker K.F. Li # Date 1283335460 -28800 # Node ID 5723e5446b7cbe7575059da671d8b3443762f4c7 # Parent bf54c0408d355e0df94e04bbad42c638c7853215 Fix incorrect variable name diff -r bf54c0408d35 -r 5723e5446b7c nodejs/svg.js --- 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]);