pagegamestats: Fix time number rendering
authorWuzzy <Wuzzy2@mail.ru>
Wed, 16 Jan 2019 07:30:06 +0100
changeset 14615 de34abf040ed
parent 14614 e7bc81b303f3
child 14616 3cf7799e04b5
pagegamestats: Fix time number rendering
QTfrontend/ui/page/pagegamestats.cpp
--- a/QTfrontend/ui/page/pagegamestats.cpp	Wed Jan 16 07:08:15 2019 +0100
+++ b/QTfrontend/ui/page/pagegamestats.cpp	Wed Jan 16 07:30:06 2019 +0100
@@ -360,11 +360,11 @@
                 killstring = PageGameStats::tr("(%1 point(s))", "", kills).arg(kills);
             } else if (kindOfPoints == "!TIME") {
                 //: Time in seconds
-                killstring = PageGameStats::tr("(%L1 second(s))", "", kills).arg((double) kills/1000, 0, 'g', 3);
+                killstring = PageGameStats::tr("(%L1 second(s))", "", kills).arg((double) kills/1000, 0, 'f', 3);
             } else if (kindOfPoints.startsWith("!TIME") && kindOfPoints.length() == 6) {
                 int len = kindOfPoints.at(6).digitValue();
                 if(len != -1)
-                    killstring = PageGameStats::tr("(%L1 second(s))", "", kills).arg((double) kills/1000, 0, 'g', len);
+                    killstring = PageGameStats::tr("(%L1 second(s))", "", kills).arg((double) kills/1000, 0, 'f', len);
                 else
                     qWarning("SendStat: siPointType received with !TIME and invalid number length!");
             } else if (kindOfPoints == "!CRATES") {