]> Git trees. - libqmvoc.git/commitdiff
Make setIdentifier accept 0 as index to set the original identifier.
authorFrederik Gladhorn <gladhorn@kde.org>
Sat, 9 Jun 2007 23:16:01 +0000 (23:16 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Sat, 9 Jun 2007 23:16:01 +0000 (23:16 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=673339

kdeeducore/keduvocdocument.cpp

index 9b6c8d0d7716b63406e9b091f3c823f0a654f53d..3e2c2027a56e85a5bcda262a5daa343fc79502ff 100644 (file)
@@ -619,7 +619,7 @@ QString KEduVocDocument::identifier(int index) const
 
 void KEduVocDocument::setIdentifier(int idx, const QString &id)
 {
-  if (idx < d->m_identifiers.size() && idx >= 1 ) {
+  if (idx < d->m_identifiers.size() && idx >= 0 ) {
     d->m_identifiers[idx] = id;
   }
 }