diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-03-03 23:19:01 +0100 |
---|---|---|
committer | Xisco Faulí <anistenis@gmail.com> | 2016-03-03 23:35:11 +0000 |
commit | 31e037c348ef0e04393926891617fde1b0051a35 (patch) | |
tree | 23d66259eec99cac4071d39be5b5d02e6a325a16 /test | |
parent | 7df498c828b36259397e2dd2769d99e7f30f7470 (diff) |
SVGIO: Check height and width of polypolygoncolor
Change-Id: Ibc5844d4e4a89fae7bbc8d2b854384d0c433500f
Reviewed-on: https://gerrit.libreoffice.org/22883
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Xisco Faulí <anistenis@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/primitive2dxmldump.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/source/primitive2dxmldump.cxx b/test/source/primitive2dxmldump.cxx index d1b2fcb2ecb2..fbd0b99c2772 100644 --- a/test/source/primitive2dxmldump.cxx +++ b/test/source/primitive2dxmldump.cxx @@ -113,7 +113,6 @@ void Primitive2dXmlDump::decomposeAndWrite( { const TransformPrimitive2D& rTransformPrimitive2D = dynamic_cast<const TransformPrimitive2D&>(*pBasePrimitive); rWriter.startElement("transform"); - //pTransformPrimitive2D->getTransformation() decomposeAndWrite(rTransformPrimitive2D.getChildren(), rWriter); rWriter.endElement(); } @@ -125,6 +124,10 @@ void Primitive2dXmlDump::decomposeAndWrite( rWriter.startElement("polypolygoncolor"); rWriter.attribute("color", convertColorToString(rPolyPolygonColorPrimitive2D.getBColor())); + const basegfx::B2DPolyPolygon aB2DPolyPolygon(rPolyPolygonColorPrimitive2D.getB2DPolyPolygon()); + const basegfx::B2DRange aB2DRange(aB2DPolyPolygon.getB2DRange()); + rWriter.attribute("height", aB2DRange.getHeight()); + rWriter.attribute("width", aB2DRange.getWidth()); rWriter.startElement("polypolygon"); rWriter.content(basegfx::tools::exportToSvgD(rPolyPolygonColorPrimitive2D.getB2DPolyPolygon(), true, true, false)); rWriter.endElement(); |