From: Frederik Gladhorn Date: Mon, 29 Oct 2007 22:59:05 +0000 (+0000) Subject: When adding a language translations with invalid ids were created. X-Git-Tag: v3.96.0~15 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=432b8f8e6a7d823bc2e789c686c5a5a705293493;p=libqmvoc.git When adding a language translations with invalid ids were created. Two variables i in the same scope? and even mixed :( BUG: 151385 svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=730876 --- diff --git a/keduvocdocument/keduvocdocument.cpp b/keduvocdocument/keduvocdocument.cpp index f7b3767..2b476a7 100644 --- a/keduvocdocument/keduvocdocument.cpp +++ b/keduvocdocument/keduvocdocument.cpp @@ -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()); } }