]> Git trees. - libqmvoc.git/commitdiff
Apply the +1 to the grade
authorAlbert Astals Cid <aacid@kde.org>
Mon, 17 Sep 2012 17:19:36 +0000 (19:19 +0200)
committerAlbert Astals Cid <aacid@kde.org>
Mon, 17 Sep 2012 17:19:36 +0000 (19:19 +0200)
And not to the max of (grad, 1) since grad starts at 0, means after an inc it went straight to 2
Acked by fregl

keduvocdocument/keduvoctext.cpp

index 4df6bd75ae24681e42faf717616fb383d303f890..41d44d08201d90070b1eb878d2d7ab8e081bf66e 100644 (file)
@@ -91,7 +91,7 @@ void KEduVocText::setGrade( grade_t grade )
 
 void KEduVocText::incGrade()
 {
-    setGrade( qMax<grade_t>(grade(), KV_LEV1_GRADE ) + 1 );
+    setGrade( qMax<grade_t>(grade() + 1, KV_LEV1_GRADE ) );
 }