Fixed an alignment problem when mpadded is used (and its contents has a removeable <g> contatining a <rect>)

This commit is contained in:
Davide P. Cervone 2012-02-06 15:28:58 -05:00
parent 93a2905024
commit 0fe2bbfa52
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1433,8 +1433,9 @@
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; // these can change durring the Add()
svg.Add(pad,x,y); svg.Clean();
svg.h = pad.h; svg.d = pad.d; svg.w = pad.w; svg.removeable = false;
svg.h = h; svg.d = d; 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)}
if (values.width !== "") {svg.w = this.SVGlength2em(svg,values.width,mu,"w",0)}