summaryrefslogtreecommitdiff
path: root/svgio/inc/svgtspannode.hxx
diff options
context:
space:
mode:
authorHossein <hossein@libreoffice.org>2021-12-20 05:44:23 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2021-12-24 19:35:15 +0100
commit8e1aea537ffe35311cc6d43d4b0cef3f4ec82367 (patch)
tree0cc23a76177dbbe3da842143e181153a2ed37d10 /svgio/inc/svgtspannode.hxx
parentefa20d38fa51675e738ce50d6894b5df75debea0 (diff)
tdf#97663 SVGIO: Fix line spacing for <tspan>
tdf#97663 is a regression caused by the commit 701324a1e1f7e0c181ff1a50956ced686785ea53. The previous patch caused LO to forget the size of the font which was needed to calculate line height based on em units. em, px, pt, cm, in... https://www.w3.org/Style/Examples/007/units.en.html Accompanied with this fix is a unit test provided to avoid this issue in the future. The fix can be tested with: make CPPUNIT_TEST_NAME="testTdf97663" -sr \ CppunitTest_svgio The em_units.svg is opened with Firefox, Chrome and Inkscape and the rendering in LibreOffice is compatible with the rendering in these applications. Change-Id: Idaecd9fb18101f7925fe2a917f7fc3fe7257ebc5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127130 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de> (cherry picked from commit 4e2e57b530544736804ab663f832173ba1d78559) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127376 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svgio/inc/svgtspannode.hxx')
-rw-r--r--svgio/inc/svgtspannode.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svgio/inc/svgtspannode.hxx b/svgio/inc/svgtspannode.hxx
index af4ae8268b5c..10a7b7ee16a9 100644
--- a/svgio/inc/svgtspannode.hxx
+++ b/svgio/inc/svgtspannode.hxx
@@ -42,7 +42,7 @@ namespace svgio::svgreader
virtual const SvgStyleAttributes* getSvgStyleAttributes() const override;
virtual void parseAttribute(const OUString& rTokenName, SVGToken aSVGToken, const OUString& aContent) override;
- virtual double getCurrentFontSize() const override;
+ double getCurrentFontSize() const;
/// access to SvgTextPositions
const SvgTextPositions& getSvgTextPositions() const { return maSvgTextPositions; }