summaryrefslogtreecommitdiffstats
path: root/kcalc/knumber/knumber_priv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcalc/knumber/knumber_priv.cpp')
-rw-r--r--kcalc/knumber/knumber_priv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kcalc/knumber/knumber_priv.cpp b/kcalc/knumber/knumber_priv.cpp
index 8f69a5d..419293b 100644
--- a/kcalc/knumber/knumber_priv.cpp
+++ b/kcalc/knumber/knumber_priv.cpp
@@ -222,7 +222,7 @@ TQString const _knumfloat::ascii(int prec) const
TQString ret_str;
char *tmp_ptr;
if (prec > 0)
- gmp_asprintf(&tmp_ptr, ("%." + TQString().setNum(prec) + "Fg").ascii(), _mpf);
+ gmp_asprintf(&tmp_ptr, ("%." + TQString(TQString().setNum(prec) + "Fg")).ascii(), _mpf);
else
gmp_asprintf(&tmp_ptr, "%Fg", _mpf);