]> Git trees. - libqmvoc.git/commitdiff
When adding a language translations with invalid ids were created.
authorFrederik Gladhorn <gladhorn@kde.org>
Mon, 29 Oct 2007 22:59:05 +0000 (22:59 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Mon, 29 Oct 2007 22:59:05 +0000 (22:59 +0000)
Two variables i in the same scope? and even mixed :(
BUG: 151385

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=730876

keduvocdocument/keduvocdocument.cpp

index f7b3767dd3b7be48707b21f8784c896193abe7b6..2b476a741a20d081f47b82076e8c3a0441f6bd44 100644 (file)
@@ -826,8 +826,8 @@ kDebug() << "appendIdentifier: " << i << id.name() << id.locale();
     }
 
     if ( i > 0 ) {
-        for (int i = 0; i < entryCount(); i++) {
-            entry(i)->translation(i).setType(entry(i)->translation(0).type());
+        for (int j = 0; j < entryCount(); j++) {
+            entry(j)->translation(i).setType(entry(j)->translation(0).type());
         }
     }