Fix crash in translation_tools
This commit is contained in:
parent
7d05793cc9
commit
25ee7f2595
1 changed files with 11 additions and 8 deletions
|
@ -2022,6 +2022,8 @@ void assertUniq(const vector<TPhrase>& reference)
|
||||||
phraseIdentifier.insert(first->Identifier);
|
phraseIdentifier.insert(first->Identifier);
|
||||||
vector<TClause>::const_iterator first2( first->Clauses.begin() );
|
vector<TClause>::const_iterator first2( first->Clauses.begin() );
|
||||||
vector<TClause>::const_iterator last2( first->Clauses.end() );
|
vector<TClause>::const_iterator last2( first->Clauses.end() );
|
||||||
|
for( ; first2 != last2; ++first2)
|
||||||
|
{
|
||||||
if (clauseIdentifier.find(first2->Identifier) != clauseIdentifier.end() )
|
if (clauseIdentifier.find(first2->Identifier) != clauseIdentifier.end() )
|
||||||
{
|
{
|
||||||
nlwarning("Clause %s defined more than once.", first2->Identifier.c_str());
|
nlwarning("Clause %s defined more than once.", first2->Identifier.c_str());
|
||||||
|
@ -2029,6 +2031,7 @@ void assertUniq(const vector<TPhrase>& reference)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue