summaryrefslogtreecommitdiff
path: root/filter/source/svg/svgwriter.cxx
diff options
context:
space:
mode:
authorChr. Rossmanith <ChrRossmanith@gmx.de>2015-03-25 22:49:13 +0100
committerThorsten Behrens <thb@documentfoundation.org>2015-03-27 21:15:48 +0000
commit0a4e9138281bd0a4be59031357c1bf52134d007a (patch)
tree8a0b218776de7fff15ae53534d72be4e667a50d1 /filter/source/svg/svgwriter.cxx
parent36275b61fe0f9ecb57a609ab47aa2246649cc21f (diff)
tdf#56467: improve export of formulas to SVG
tspan element only valid as child of text element if exporting a selection use top left corner of bounding rect as top left corner of viewbox export x coordinate of text position for text portions Change-Id: I8b739085473aa4a48ff3bbbbe8c413c3cddbaebd Reviewed-on: https://gerrit.libreoffice.org/14992 Reviewed-by: Thorsten Behrens <thb@documentfoundation.org> Tested-by: Thorsten Behrens <thb@documentfoundation.org>
Diffstat (limited to 'filter/source/svg/svgwriter.cxx')
-rw-r--r--filter/source/svg/svgwriter.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index f48990578f77..c3b544f4ad43 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -1541,7 +1541,7 @@ void SVGTextWriter::implWriteTextPortion( const Point& rPos,
else
aPos = rPos;
- if( mbPositioningNeeded )
+ if( mbPositioningNeeded || bApplyMapping )
{
mbPositioningNeeded = false;
maTextPos.setX( aPos.X() );
@@ -3510,7 +3510,9 @@ void SVGActionWriter::ImplWriteActions( const GDIMetaFile& rMtf,
}
else
{
+ maTextWriter.startTextShape();
maTextWriter.writeTextPortion( pA->GetPoint(), aText );
+ maTextWriter.endTextShape();
}
}
}