From 477903cc79fb4d20ed5ded02381e4085d7096c0f Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 27 Jan 2015 08:16:20 -0500 Subject: [PATCH] Fix problem with positioning of colored rectangles (when combined combitionings add up to zero). --- unpacked/jax/output/SVG/jax.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js index ce30ff0a5..5cff46e44 100644 --- a/unpacked/jax/output/SVG/jax.js +++ b/unpacked/jax/output/SVG/jax.js @@ -850,6 +850,8 @@ svg.h -= y; svg.d += y; svg.H -= y; svg.D +=y; svg.w -= x; svg.r -= x; svg.l += x; svg.removeable = false; + child.setAttribute("x",Math.floor(svg.x/svg.scale)); + child.setAttribute("y",Math.floor(svg.y/svg.scale)); } } if (Math.abs(svg.x) < 1 && Math.abs(svg.y) < 1) {