mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +01:00
Fixed to AttributesImpl.getIndex from Isak Johnsson. Thanks go to him and a "what on earth was I thinking" to me.
This commit is contained in:
parent
af3ebfde60
commit
fa235dc7af
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ public:
|
|||
{
|
||||
typename AttrList::const_iterator a = std::find_if(attributes_.begin(), attributes_.end(), AttributeNamed(uri, localName));
|
||||
if(a != attributes_.end())
|
||||
return static_cast<int>(std::distance(a, attributes_.end()));
|
||||
return static_cast<int>(std::distance(attributes_.begin(), a));
|
||||
return -1;
|
||||
} // getIndex
|
||||
|
||||
|
|
Loading…
Reference in a new issue