PoChecker: do not increment WarningCount CheckStatistics.

git-svn-id: trunk@44250 -
This commit is contained in:
bart 2014-02-26 17:52:59 +00:00
parent 7bbea27144
commit 206cae270e
2 changed files with 1 additions and 2 deletions

View File

@ -308,7 +308,7 @@ begin
PoFamily.RunTests(Options, ErrorCount, WarningCount, SL);
debugln('RunSelectedTests: ',Format(sTotalErrors,[ErrorCount]));
debugln(' ',Format(sTotalWarnings,[WarningCount]));
if (ErrorCount > 0) or (WarningCount > 0) then
if (ErrorCount > 0) or (WarningCount > 0) or (ptoCheckStatistics in Options) then
begin
SL.Add(Format(sTotalErrors,[ErrorCount]));
SL.Add(Format(sTotalWarnings,[WarningCount]));

View File

@ -601,7 +601,6 @@ begin
NrTotal := NrTranslated + NrUntranslated + NrFuzzy;
if (NrTotal > 0) then
begin
WarningCount := 1; //else it will not show up...
ErrorLog.Add(Divider);
ErrorLog.Add(sTranslationStatistics);
ErrorLog.Add(ShortChildName);