summaryrefslogtreecommitdiffstats
path: root/redhat/applications/koffice/kexi-fp_expressions-1.1.3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications/koffice/kexi-fp_expressions-1.1.3.patch')
-rw-r--r--redhat/applications/koffice/kexi-fp_expressions-1.1.3.patch21
1 files changed, 21 insertions, 0 deletions
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;
+ }