summaryrefslogtreecommitdiff
path: root/misc/kdeedu3/patches/patch-kmplot_kmplot_View.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'misc/kdeedu3/patches/patch-kmplot_kmplot_View.cpp')
-rw-r--r--misc/kdeedu3/patches/patch-kmplot_kmplot_View.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/misc/kdeedu3/patches/patch-kmplot_kmplot_View.cpp b/misc/kdeedu3/patches/patch-kmplot_kmplot_View.cpp
new file mode 100644
index 00000000000..646588f37c1
--- /dev/null
+++ b/misc/kdeedu3/patches/patch-kmplot_kmplot_View.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-kmplot_kmplot_View.cpp,v 1.1 2014/07/14 09:35:47 jperkin Exp $
+
+Avoid "error: call of overloaded <func> is ambiguous"
+
+--- kmplot/kmplot/View.cpp.orig 2006-05-22 18:03:40.000000000 +0000
++++ kmplot/kmplot/View.cpp
+@@ -890,7 +890,7 @@ void View::mousePressEvent(QMouseEvent *
+ if ( function_type=='x' && fabs(csxpos-m_parser->fkt(it, csxpos))< g && it->fstr.contains('t')==1) //parametric plot
+ {
+ QValueVector<Ufkt>::iterator ufkt_y = it+1;
+- if ( fabs(csypos-m_parser->fkt(ufkt_y, csxpos)<g) && ufkt_y->fstr.contains('t')==1)
++ if ( fabs(csypos-m_parser->fkt(ufkt_y, csxpos)) < g && ufkt_y->fstr.contains('t')==1)
+ {
+ if ( csmode == -1)
+ {