diff options
| author | Don Sanders <don.sanders@nokia.com> | 2011-05-16 19:27:30 +0300 |
|---|---|---|
| committer | Don Sanders <don.sanders@nokia.com> | 2011-05-16 19:27:30 +0300 |
| commit | 0d3e7f6d424aa9cf456e5230d48f94d1b5afa32d (patch) | |
| tree | b21d6ccd91bc179564968143d8d8213af408ee8b | |
| parent | 44e56e9672b79d5317664d36b16b126140702bf0 (diff) | |
| parent | 4c5c6ad9648a9c100b99c2d0f397ce106559ace9 (diff) | |
Merge branch 'infinite-loop'2011W19_2
| -rw-r--r-- | src/libraries/qmfclient/qmailmessage.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libraries/qmfclient/qmailmessage.cpp b/src/libraries/qmfclient/qmailmessage.cpp index 9b0fac5a..8e4e6923 100644 --- a/src/libraries/qmfclient/qmailmessage.cpp +++ b/src/libraries/qmfclient/qmailmessage.cpp @@ -8001,11 +8001,15 @@ void QMailMessage::refreshPreview() if (pos < 0) break; int semicolon = markup.indexOf(';', pos+2); - if (semicolon < 0) + if (semicolon < 0) { + ++pos; continue; + } int code = (markup.mid(pos+2, semicolon-pos-2)).toInt(); - if (code == 0) + if (code == 0) { + ++pos; continue; + } markup.replace(pos, semicolon-pos+1, QChar(code)); } |
