diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-03-06 14:11:04 +0100 |
---|---|---|
committer | Xisco Faulí <anistenis@gmail.com> | 2016-03-06 15:16:22 +0000 |
commit | 5f0c3172b3d2a5d3a71ab19caa5b462b539cbbe6 (patch) | |
tree | 9f0ac04e52078e982899001f2ea2500f86fa0cba /test/source | |
parent | e5f56d0c6e2a7d75a1f5ee27550b1270641da977 (diff) |
SVGIO: Check minX, minY, maxX and maxY in polypolygon
Change-Id: I768bef34ad0ba7708134e73981dabf0d47c2f259
Reviewed-on: https://gerrit.libreoffice.org/22952
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Xisco Faulí <anistenis@gmail.com>
Diffstat (limited to 'test/source')
-rw-r--r-- | test/source/primitive2dxmldump.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/source/primitive2dxmldump.cxx b/test/source/primitive2dxmldump.cxx index fbd0b99c2772..0f7a4fc372a7 100644 --- a/test/source/primitive2dxmldump.cxx +++ b/test/source/primitive2dxmldump.cxx @@ -128,6 +128,10 @@ void Primitive2dXmlDump::decomposeAndWrite( const basegfx::B2DRange aB2DRange(aB2DPolyPolygon.getB2DRange()); rWriter.attribute("height", aB2DRange.getHeight()); rWriter.attribute("width", aB2DRange.getWidth()); + rWriter.attribute("minx", aB2DRange.getMinX()); + rWriter.attribute("miny", aB2DRange.getMinY()); + rWriter.attribute("maxx", aB2DRange.getMaxX()); + rWriter.attribute("maxy", aB2DRange.getMaxY()); rWriter.startElement("polypolygon"); rWriter.content(basegfx::tools::exportToSvgD(rPolyPolygonColorPrimitive2D.getB2DPolyPolygon(), true, true, false)); rWriter.endElement(); |