diff options
Diffstat (limited to 'kcalc/knumber')
-rw-r--r-- | kcalc/knumber/configure.in.in | 2 | ||||
-rw-r--r-- | kcalc/knumber/knumber_priv.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kcalc/knumber/configure.in.in b/kcalc/knumber/configure.in.in index 8ef670b..224e91b 100644 --- a/kcalc/knumber/configure.in.in +++ b/kcalc/knumber/configure.in.in @@ -53,7 +53,7 @@ KDE_CHECK_HEADER([gmp.h], [ AC_LANG_CPLUSPLUS kde_save_LIBS=$LIBS - LIBS="$all_libraries -lgmp" + LIBS="$all_libraries -lgmp -ltqt" AC_TRY_LINK(dnl [ #include <gmp.h> 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); |