summaryrefslogtreecommitdiff
path: root/xml2cmp/source/xcd/xmlelem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xml2cmp/source/xcd/xmlelem.cxx')
-rw-r--r--xml2cmp/source/xcd/xmlelem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xml2cmp/source/xcd/xmlelem.cxx b/xml2cmp/source/xcd/xmlelem.cxx
index 10662b3a40d4..006197465de6 100644
--- a/xml2cmp/source/xcd/xmlelem.cxx
+++ b/xml2cmp/source/xcd/xmlelem.cxx
@@ -207,7 +207,7 @@ MultipleTextElement::Data( unsigned i_nNr ) const
{
static const Simstr sNull_;
- if (aContent.is_valid_index(i_nNr))
+ if (i_nNr < aContent.size())
return aContent[i_nNr];
return sNull_;
}