SVG import bound fix 2

This commit is contained in:
honfika@gmail.com
2017-04-01 21:13:17 +02:00
parent 188ca27a2d
commit 27a192570b

View File

@@ -183,7 +183,7 @@ public class SvgImporter {
double ratioX = rect.getWidth() / width / SWF.unitDivisor;
double ratioY = rect.getHeight() / height / SWF.unitDivisor;
transform = Matrix.getScaleInstance(ratioX, ratioY);
transform.translate(origXmin / SWF.unitDivisor, origYmin / SWF.unitDivisor);
transform.translate(origXmin / SWF.unitDivisor / ratioX, origYmin / SWF.unitDivisor / ratioY);
}
processSvgObject(idMap, shapeNum, shapes, rootElement, transform, style);