summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgcharacternode.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx
index bc4e739eccb8..419a887cc55f 100644
--- a/svgio/source/svgreader/svgcharacternode.cxx
+++ b/svgio/source/svgreader/svgcharacternode.cxx
@@ -225,11 +225,11 @@ namespace svgio::svgreader
{
// prepare retval, index and length
drawinglayer::primitive2d::TextSimplePortionPrimitive2D* pRetval = nullptr;
- sal_uInt32 nIndex(0);
sal_uInt32 nLength(getText().getLength());
if(nLength)
{
+ sal_uInt32 nIndex(0);
// prepare FontAttribute
const SvgStringVector& rFontFamilyVector = rSvgStyleAttributes.getFontFamily();
OUString aFontFamily = rFontFamilyVector.empty() ?