From d56d039d95d14dfa39fb1e3630e508bf48982c49 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Thu, 26 Apr 2012 11:28:01 +0200 Subject: RHEL/Fedora: updates koffice 3.5.13 --- .../koffice/kexi-fp_expressions-1.1.3.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 redhat/applications/koffice/kexi-fp_expressions-1.1.3.patch (limited to 'redhat/applications/koffice/kexi-fp_expressions-1.1.3.patch') diff --git a/redhat/applications/koffice/kexi-fp_expressions-1.1.3.patch b/redhat/applications/koffice/kexi-fp_expressions-1.1.3.patch new file mode 100644 index 000000000..9147ffad2 --- /dev/null +++ b/redhat/applications/koffice/kexi-fp_expressions-1.1.3.patch @@ -0,0 +1,21 @@ +Index: kexi/kexidb/expression.cpp +=================================================================== +--- kexi/kexidb/expression.cpp (revision 742153) ++++ kexi/kexidb/expression.cpp (working copy) +@@ -400,14 +400,10 @@ + if (ltInt && rtInt) + return KexiDB::maximumForIntegerTypes(lt, rt); + +- if (Field::isFPNumericType(lt) && rtInt) ++ if (Field::isFPNumericType(lt) && (rtInt || lt==rt)) + return lt; +- if (Field::isFPNumericType(rt) && ltInt) ++ if (Field::isFPNumericType(rt) && (ltInt || lt==rt)) + return rt; +- if ((lt==Field::Double || lt==Field::Float) && rtInt) +- return lt; +- if ((rt==Field::Double || rt==Field::Float) && ltInt) +- return rt; + + return Field::Boolean; + } -- cgit v1.2.1