]> Git trees. - libqmvoc.git/commitdiff
Also add entries to lesson 0. (> has to be >=)
authorFrederik Gladhorn <gladhorn@kde.org>
Mon, 17 Sep 2007 14:46:20 +0000 (14:46 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Mon, 17 Sep 2007 14:46:20 +0000 (14:46 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=713435

keduvocdocument/keduvocdocument.cpp

index 65bcc5baa159177dc051634ff317cbb4e8f0a832..ffa0ea121a95d2bafb0a189362f10388011cf879 100644 (file)
@@ -169,7 +169,7 @@ void KEduVocDocument::insertEntry( KEduVocExpression *expression, int index )
         d->m_lessons[i].incrementEntriesAbove(index);
     }
     // if the expression is added and the lesson already exists (not at doc loading time, but added later) make sure it ends up in the lesson as well.
-    if ( expression->lesson() > 0 && expression->lesson() < d->m_lessons.count() ) {
+    if ( expression->lesson() >= 0 && expression->lesson() < d->m_lessons.count() ) {
         d->m_lessons[expression->lesson()].addEntry(index);
     }
     setModified();