Skip to content

Commit 0ce96b3

Browse files
authored
fix #12642 - GUI: statistics is not correct (danmar#7600)
The number displayed is one fewer than the actual number.
1 parent 379f8c8 commit 0ce96b3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gui/checkstatistics.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ CheckStatistics::CheckStatistics(QObject *parent)
3030

3131
static void addItem(QMap<QString,unsigned> &m, const QString &key)
3232
{
33-
if (m.contains(key))
34-
m[key]++;
35-
else
36-
m[key] = 0;
33+
m[key]++;
3734
}
3835

3936
void CheckStatistics::addItem(const QString &tool, ShowTypes::ShowType type)

0 commit comments

Comments
 (0)