]> sigrok.org Git - pulseview.git/commitdiff
util: Added a space between the value and prefix
authorJoel Holdsworth <redacted>
Tue, 30 Dec 2014 11:43:00 +0000 (11:43 +0000)
committerJoel Holdsworth <redacted>
Tue, 30 Dec 2014 14:24:08 +0000 (14:24 +0000)
pv/util.cpp

index ff1b484899a19507c882079014dc917062c7ccf1..2e54adeaed3dffae88cb2b7354ce9eb57395302b 100644 (file)
@@ -61,8 +61,8 @@ QString format_si_value(double v, QString unit, int prefix,
        QTextStream ts(&s);
        if (sign)
                ts << forcesign;
-       ts << fixed << qSetRealNumberPrecision(precision)
-               << (v  * multiplier) << SIPrefixes[prefix] << unit;
+       ts << fixed << qSetRealNumberPrecision(precision) <<
+               (v  * multiplier) << " " << SIPrefixes[prefix] << unit;
 
        return s;
 }