diff options
author | Lucie Gérard <lucie.gerard@qt.io> | 2023-07-06 15:36:20 +0200 |
---|---|---|
committer | Lucie Gérard <lucie.gerard@qt.io> | 2023-07-11 15:42:24 +0200 |
commit | ec222b4ca5cf0565d5473e231f0281c64cb803be (patch) | |
tree | f3ac1782a65161a75b04545d297cbc47b5e4cf2d | |
parent | 5577432ba554e4835ceaa76f6bd97d76f6b7e8aa (diff) |
linguist: Correct behavior of place marker validation
In the case of place markers directly following one another
the second was missed
Pick-to: 6.5 6.6
Fixes: QTBUG-95340
Change-Id: I567f03905c4d55254ee3945b64eb5392d42c1a2d
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | src/linguist/linguist/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/linguist/linguist/mainwindow.cpp b/src/linguist/linguist/mainwindow.cpp index 6f821cd7d..71b4140ae 100644 --- a/src/linguist/linguist/mainwindow.cpp +++ b/src/linguist/linguist/mainwindow.cpp @@ -2598,8 +2598,9 @@ void MainWindow::updateDanger(const MultiDataIndex &index, bool verbose) escape_start, escape_end - escape_start).toInt(&ok); if (ok) placeMarkerIndexes[markerIndex] += (pass == 0 ? numTranslations : -1); + } else { + ++c; } - ++c; } } |