diff options
Diffstat (limited to 'xml2cmp/source/xcd/xmlelem.cxx')
-rw-r--r-- | xml2cmp/source/xcd/xmlelem.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xml2cmp/source/xcd/xmlelem.cxx b/xml2cmp/source/xcd/xmlelem.cxx index 10662b3a40d4..3634d076c216 100644 --- a/xml2cmp/source/xcd/xmlelem.cxx +++ b/xml2cmp/source/xcd/xmlelem.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -207,7 +208,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_; } @@ -262,3 +263,4 @@ MultipleAttrElement::Write2Html( HtmlCreator & io_rHC ) const } +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |