From 667ce0845d97440a82f7303466aeb1a61a4d81f0 Mon Sep 17 00:00:00 2001 From: alihanozturk Date: Fri, 1 Apr 2016 22:16:47 +0300 Subject: [PATCH] kmplot:add patch --- .../kde/edu/kmplot/files/kmplot-isnan.patch | 42 +++++++++++++++++++ desktop/kde/edu/kmplot/pspec.xml | 8 +++- 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 desktop/kde/edu/kmplot/files/kmplot-isnan.patch diff --git a/desktop/kde/edu/kmplot/files/kmplot-isnan.patch b/desktop/kde/edu/kmplot/files/kmplot-isnan.patch new file mode 100644 index 0000000000..1e24bfa4fe --- /dev/null +++ b/desktop/kde/edu/kmplot/files/kmplot-isnan.patch @@ -0,0 +1,42 @@ +--- kmplot-15.12.3/kmplot/view.cpp.0 2016-03-11 21:19:48.011194225 +0000 ++++ kmplot-15.12.3/kmplot/view.cpp 2016-03-11 21:20:37.341056493 +0000 +@@ -476,7 +476,7 @@ + double x = pixel.x(); + double y = pixel.y(); + +- if ( isnan(x) ) ++ if ( std::isnan(x) ) + { + xclipflg = true; + x = pixelIfNaN.x(); +@@ -496,14 +496,14 @@ + } + else + { +- if ( isinf(x) == -1 ) ++ if ( std::isinf(x) == -1 ) + x = 0; + +- else if ( isinf(x) == 1 ) ++ else if ( std::isinf(x) == 1 ) + x = m_clipRect.right(); + } + +- if ( isnan(y) ) ++ if ( std::isnan(y) ) + { + yclipflg = true; + y = pixelIfNaN.y(); +@@ -523,10 +523,10 @@ + } + else + { +- if ( isinf(y) == -1 ) ++ if ( std::isinf(y) == -1 ) + y = 0; + +- else if ( isinf(y) == 1 ) ++ else if ( std::isinf(y) == 1 ) + y = m_clipRect.bottom(); + } + \ No newline at end of file diff --git a/desktop/kde/edu/kmplot/pspec.xml b/desktop/kde/edu/kmplot/pspec.xml index 2f3d8c3c73..0e2c2bf23c 100644 --- a/desktop/kde/edu/kmplot/pspec.xml +++ b/desktop/kde/edu/kmplot/pspec.xml @@ -1,4 +1,3 @@ - kmplot @@ -30,7 +29,11 @@ kitemmodels-devel qt5-base-devel + + kmplot-isnan.patch + + kmplot Mathematical Function Plotter @@ -59,9 +62,10 @@ /usr/share/man + - 2016-03-24 + 2016-04-01 15.12.3 First release Yusuf Aydemir