kmplot:add patch
This commit is contained in:
@@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
<PISI>
|
<PISI>
|
||||||
<Source>
|
<Source>
|
||||||
<Name>kmplot</Name>
|
<Name>kmplot</Name>
|
||||||
@@ -30,7 +29,11 @@
|
|||||||
<Dependency>kitemmodels-devel</Dependency>
|
<Dependency>kitemmodels-devel</Dependency>
|
||||||
<Dependency>qt5-base-devel</Dependency>
|
<Dependency>qt5-base-devel</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<Patch level="1">kmplot-isnan.patch</Patch>
|
||||||
|
</Patches>
|
||||||
</Source>
|
</Source>
|
||||||
|
|
||||||
<Package>
|
<Package>
|
||||||
<Name>kmplot</Name>
|
<Name>kmplot</Name>
|
||||||
<Summary>Mathematical Function Plotter</Summary>
|
<Summary>Mathematical Function Plotter</Summary>
|
||||||
@@ -59,9 +62,10 @@
|
|||||||
<Path fileType="man">/usr/share/man</Path>
|
<Path fileType="man">/usr/share/man</Path>
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
<Update release="1">
|
<Update release="1">
|
||||||
<Date>2016-03-24</Date>
|
<Date>2016-04-01</Date>
|
||||||
<Version>15.12.3</Version>
|
<Version>15.12.3</Version>
|
||||||
<Comment>First release</Comment>
|
<Comment>First release</Comment>
|
||||||
<Name>Yusuf Aydemir</Name>
|
<Name>Yusuf Aydemir</Name>
|
||||||
|
|||||||
Reference in New Issue
Block a user