summaryrefslogtreecommitdiff
path: root/svgio/source/svgreader
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-01-26 01:29:22 +0100
committerNoel Grandin <noelgrandin@gmail.com>2016-01-28 06:47:47 +0000
commit701324a1e1f7e0c181ff1a50956ced686785ea53 (patch)
tree4b0d053279cd5c4a393df80b1d5d953cedf3997f /svgio/source/svgreader
parentc06238f28209402a9cbcc2471dd713de0db0fb4b (diff)
SVGIO: tdf#45771: Fix issue when text size is twice its size...
... when using relative units (em, ex) This is because for nodes of type textnode, getFontSizeNumber is called from SvgCharacterNode::createSimpleTextPrimitive and from SvgNode::getCurrentFontSize(), so avoid the second call. Change-Id: Ibd418708a572e3c1643164a900fac7e7481afe81 Reviewed-on: https://gerrit.libreoffice.org/21801 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svgio/source/svgreader')
-rw-r--r--svgio/source/svgreader/svgtextnode.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/svgio/source/svgreader/svgtextnode.cxx b/svgio/source/svgreader/svgtextnode.cxx
index 4637bcee51c2..ae7d0e104b85 100644
--- a/svgio/source/svgreader/svgtextnode.cxx
+++ b/svgio/source/svgreader/svgtextnode.cxx
@@ -260,6 +260,11 @@ namespace svgio
}
}
}
+
+ double SvgTextNode::getCurrentFontSize() const
+ {
+ return getCurrentFontSizeInherited();
+ }
} // end of namespace svgreader
} // end of namespace svgio