Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3606
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/06/3606/1
fdo#42939 - write svg line widths for META_POLYLINE_ACTION.
Change-Id: Ib282a3db6ecb5c7d1d4117e1bb48920ee7b2f562
---
M filter/source/svg/svgwriter.cxx
M filter/source/svg/svgwriter.hxx
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index 2f269ba..ae2372c 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -2186,7 +2186,16 @@
}
}
-//
-----------------------------------------------------------------------------
+void SVGActionWriter::ImplAddLineAttr( const LineInfo &rAttrs,
+ sal_Bool bApplyMapping )
+{
+ if ( !rAttrs.IsDefault() )
+ {
+ sal_Int32 nStrokeWidth = bApplyMapping ? ImplMap( rAttrs.GetWidth() )
: rAttrs.GetWidth();
+ mrExport.AddAttribute( XML_NAMESPACE_NONE, aXMLAttrStrokeWidth,
+ OUString::valueOf( nStrokeWidth ) );
+ }
+}
void SVGActionWriter::ImplWritePolyPolygon( const PolyPolygon& rPolyPoly,
sal_Bool bLineOnly,
sal_Bool bApplyMapping )
@@ -3172,6 +3181,7 @@
if( rPoly.GetSize() )
{
mpContext->AddPaintAttr( mpVDev->GetLineColor(),
Color( COL_TRANSPARENT ) );
+ ImplAddLineAttr( pA->GetLineInfo() );
ImplWritePolyPolygon( rPoly, sal_True );
}
}
diff --git a/filter/source/svg/svgwriter.hxx b/filter/source/svg/svgwriter.hxx
index ebffda9..0e2d7a5 100644
--- a/filter/source/svg/svgwriter.hxx
+++ b/filter/source/svg/svgwriter.hxx
@@ -364,6 +364,8 @@
void ImplWriteEllipse( const Point& rCenter, long
nRadX, long nRadY,
sal_Bool bApplyMapping =
sal_True );
void ImplWritePattern( const PolyPolygon& rPolyPoly,
const Hatch* pHatch, const Gradient* pGradient, sal_uInt32 nWriteFlags );
+ void ImplAddLineAttr( const LineInfo &rAttrs,
+ sal_Bool bApplyMapping = sal_True
);
void ImplWritePolyPolygon( const PolyPolygon&
rPolyPoly, sal_Bool bLineOnly,
sal_Bool bApplyMapping =
sal_True );
void ImplWriteShape( const SVGShapeDescriptor& rShape,
sal_Bool bApplyMapping = sal_True );
--
To view, visit https://gerrit.libreoffice.org/3606
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib282a3db6ecb5c7d1d4117e1bb48920ee7b2f562
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Michael Meeks <[email protected]>
_______________________________________________
LibreOffice mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice