Fix problem with positioning of colored rectangles (when combined combitionings add up to zero).

This commit is contained in:
Davide P. Cervone 2015-01-27 08:16:20 -05:00
parent 94b7c4243b
commit 477903cc79

View File

@ -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) {