diff options
Diffstat (limited to 'xml2cmp/source/xcd/xmlelem.cxx')
-rw-r--r-- | xml2cmp/source/xcd/xmlelem.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xml2cmp/source/xcd/xmlelem.cxx b/xml2cmp/source/xcd/xmlelem.cxx index 5a795d61c8aa..836c8f65179e 100644 --- a/xml2cmp/source/xcd/xmlelem.cxx +++ b/xml2cmp/source/xcd/xmlelem.cxx @@ -202,7 +202,7 @@ MultipleTextElement::Data( unsigned i_nNr ) const { static const Simstr sNull_; - if (i_nNr < aContent.size()) + if (aContent.is_valid_index(i_nNr)) return aContent[i_nNr]; return sNull_; } |