diff options
Diffstat (limited to 'kspread/kspread_functions_conversion.cc')
-rw-r--r-- | kspread/kspread_functions_conversion.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kspread/kspread_functions_conversion.cc b/kspread/kspread_functions_conversion.cc index 42246838..23f2ca01 100644 --- a/kspread/kspread_functions_conversion.cc +++ b/kspread/kspread_functions_conversion.cc @@ -168,7 +168,7 @@ Value func_roman (valVector args, ValueCalc *calc, FuncExtra *) if ((value < 0) || (value > 3999)) return Value::errorNA(); TQString result; - result = TQString::tqfromLatin1 (RNThousands[(value / 1000)] + + result = TQString::fromLatin1 (RNThousands[(value / 1000)] + RNHundreds[(value / 100) % 10] + RNTens[(value / 10 ) % 10] + RNUnits[(value) % 10]); @@ -179,7 +179,7 @@ Value func_roman (valVector args, ValueCalc *calc, FuncExtra *) // return < 0 if invalid int func_arabic_helper (TQChar c) { - switch (c.upper().tqunicode()) + switch (c.upper().unicode()) { case 'M': return 1000; case 'D': return 500; |