| Summary: | correct and given answer are the same when forgetting one letter of two same in row | ||
|---|---|---|---|
| Product: | [Applications] kwordquiz | Reporter: | Grzegorz Oledzki <grzegon> | 
| Component: | general | Assignee: | Peter Hedlund <peter> | 
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| 
        
          Description
        
        
          Grzegorz Oledzki
        
        
        
        
          2006-02-16 16:48:43 UTC
        
       SVN commit 510376 by hedlund:
Display incorrect answers correctly (sic!).
BUG:122111
 M  +1 -1      qaview.cpp  
--- branches/KDE/3.5/kdeedu/kwordquiz/src/qaview.cpp #510375:510376
@@ -41,7 +41,7 @@
   QString result2 = "</qt>";
   int j = s.length() - 1;
   int k = e.length() - 1;
-  while (s[j] == e[k])
+  while (s[j] == e[k] && k > i)
   {
     result2.prepend(e[k]);
     j--;
 |