]> Git trees. - libqmvoc.git/commitdiff
Fixed infinite loop.
authorJohannes Simon <johannes.simon@gmail.com>
Fri, 21 Sep 2007 23:09:19 +0000 (23:09 +0000)
committerJohannes Simon <johannes.simon@gmail.com>
Fri, 21 Sep 2007 23:09:19 +0000 (23:09 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=715365

keduvocdocument/keduvoclesson.cpp
keduvocdocument/keduvocmultiplechoice.cpp

index 77406ff88dba35630ef2f04e3318900b32a7b96f..bf125187e125e17cda547831f3203102cb8a64b8 100644 (file)
@@ -122,6 +122,9 @@ void KEduVocLesson::decrementEntriesAbove( int entryid )
             entries[i] = entries[i] - 1;
             ++i;
         }
+        else {
+            ++i;
+        }
     }
     
     // then put the new list into the set
index 68d360cbe4c177824a2282f669aed91775803d85..a6e76ad2695ad454a357e77b61b30a51c99b742b 100644 (file)
@@ -24,6 +24,7 @@
  ***************************************************************************/
 
 #include "keduvocmultiplechoice.h"
+#include "kdebug.h"
 
 class KEduVocMultipleChoice::KEduVocMultipleChoicePrivate
 {
@@ -100,6 +101,7 @@ bool KEduVocMultipleChoice::operator== ( const KEduVocMultipleChoice &choice ) c
 void KEduVocMultipleChoice::appendChoice( const QString &s )
 {
     if ( !s.isEmpty() ) {
+        kDebug() << s;
         d->m_choices.append( s );
     }
 }