Merge pull request #1516 from alihanozturk/master

kmplot:add patch
This commit is contained in:
Ertuğrul Erata
2016-04-01 22:36:52 +03:00
2 changed files with 48 additions and 2 deletions
@@ -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();
}
+6 -2
View File
@@ -1,4 +1,3 @@
<PISI>
<Source>
<Name>kmplot</Name>
@@ -30,7 +29,11 @@
<Dependency>kitemmodels-devel</Dependency>
<Dependency>qt5-base-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">kmplot-isnan.patch</Patch>
</Patches>
</Source>
<Package>
<Name>kmplot</Name>
<Summary>Mathematical Function Plotter</Summary>
@@ -59,9 +62,10 @@
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-03-24</Date>
<Date>2016-04-01</Date>
<Version>15.12.3</Version>
<Comment>First release</Comment>
<Name>Yusuf Aydemir</Name>