summaryrefslogtreecommitdiffstats
path: root/kde/patch/kmplot/kmplot_isnan.patch
blob: 691ff89b73e51d82b9e23f31b187f05c88eed761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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();
 	}