filter/source/svg/svgwriter.cxx |   13 ++++++++++++-
 filter/source/svg/svgwriter.hxx |    2 ++
 2 files changed, 14 insertions(+), 1 deletion(-)

New commits:
commit 90469529681c3217dab900c8983f717fb557fc5e
Author: Michael Meeks <michael.me...@suse.com>
Date:   Wed Mar 27 19:33:56 2013 +0000

    fdo#62834 - svg export: close stray trailing tspans if we have them.
    
    Change-Id: Ifc539e3229edd14b7291ee66bf3523cbdbedf2ef
    Reviewed-on: https://gerrit.libreoffice.org/3607
    Reviewed-by: Fridrich Strba <fridr...@documentfoundation.org>
    Tested-by: Fridrich Strba <fridr...@documentfoundation.org>

diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index ae2372c..b8fc596 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -3904,6 +3904,7 @@ void SVGActionWriter::WriteMetaFile( const Point& 
rPos100thmm,
     mapCurShape.reset();
 
     ImplWriteActions( rMtf, nWriteFlags, pElementId, pXShape, 
pTextEmbeddedBitmapMtf );
+    maTextWriter.endTextParagraph();
 
     // draw open shape that doesn't have a border
     if( mapCurShape.get() )
commit d90e03478ab6cbdf2073dd6a646dfacfc76b3c14
Author: Michael Meeks <michael.me...@suse.com>
Date:   Mon Mar 25 20:44:59 2013 +0000

    fdo#42939 - write svg line widths for META_POLYLINE_ACTION.
    
    Change-Id: Ib282a3db6ecb5c7d1d4117e1bb48920ee7b2f562
    Reviewed-on: https://gerrit.libreoffice.org/3606
    Reviewed-by: Fridrich Strba <fridr...@documentfoundation.org>
    Tested-by: Fridrich Strba <fridr...@documentfoundation.org>

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::ImplWriteEllipse( const Point& 
rCenter, long nRadX, long n
     }
 }
 
-// 
-----------------------------------------------------------------------------
+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 @@ void SVGActionWriter::ImplWriteActions( const 
GDIMetaFile& rMtf,
                     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 @@ private:
     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 );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to