summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svgio/source/svgreader/svgcharacternode.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx
index 855beaa32954..8951c3117cac 100644
--- a/svgio/source/svgreader/svgcharacternode.cxx
+++ b/svgio/source/svgreader/svgcharacternode.cxx
@@ -238,9 +238,10 @@ namespace svgio
if(nLength)
{
// prepare FontAttribute
- OUString aFontFamily = rSvgStyleAttributes.getFontFamily().empty() ?
+ const SvgStringVector& rFontFamilyVector = rSvgStyleAttributes.getFontFamily();
+ OUString aFontFamily = rFontFamilyVector.empty() ?
OUString("Times New Roman") :
- rSvgStyleAttributes.getFontFamily()[0];
+ rFontFamilyVector[0];
// #i122324# if the FontFamily name ends on ' embedded' it is probably a re-import
// of a SVG export with font embedding. Remove this to make font matching work. This