commit dc7919693d15beaef7f3bca516ee02b6fed6c46e
parent c95cb11c199a902f9f6a66f7edb935a9c65fbd8b
Author: Davide P. Cervone <dpvc@union.edu>
Date: Thu, 15 Jan 2015 15:02:50 -0500
Accidentally reused variable y, so change to Y. Issue #991.
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js
@@ -1635,11 +1635,11 @@
if (this.data[0] != null) {
this.SVGgetScale(svg); this.SVGhandleSpace(svg);
var pad = this.SVGdataStretched(0,HW,D), mu = this.SVGgetMu(svg);
- var values = this.getValues("height","depth","width","lspace","voffset"), x = 0, y = 0;
- if (values.lspace) {x = this.SVGlength2em(pad,values.lspace,mu)}
- if (values.voffset) {y = this.SVGlength2em(pad,values.voffset,mu)}
+ var values = this.getValues("height","depth","width","lspace","voffset"), X = 0, Y = 0;
+ if (values.lspace) {X = this.SVGlength2em(pad,values.lspace,mu)}
+ if (values.voffset) {Y = this.SVGlength2em(pad,values.voffset,mu)}
var h = pad.h, d = pad.d, w = pad.w, y = pad.y; // these can change durring the Add()
- svg.Add(pad,x,y); svg.Clean();
+ svg.Add(pad,X,Y); svg.Clean();
svg.h = h+y; svg.d = d-y; svg.w = w; svg.removeable = false;
if (values.height !== "") {svg.h = this.SVGlength2em(svg,values.height,mu,"h",0)}
if (values.depth !== "") {svg.d = this.SVGlength2em(svg,values.depth,mu,"d",0)}