[neon/snap-packaging/kf6-core-sdk] patches/kcalendarcore: Update isnan patch.
Scarlett Moore
null at kde.org
Tue Jun 11 10:49:23 BST 2024
Git commit 1a71a61b0d1940530ed832bfef4988cf3f8b8656 by Scarlett Moore.
Committed on 11/06/2024 at 09:49.
Pushed by scarlettmoore into branch 'master'.
Update isnan patch.
M +19 -1 patches/kcalendarcore/fix_isnan_error.patch
https://invent.kde.org/neon/snap-packaging/kf6-core-sdk/-/commit/1a71a61b0d1940530ed832bfef4988cf3f8b8656
diff --git a/patches/kcalendarcore/fix_isnan_error.patch b/patches/kcalendarcore/fix_isnan_error.patch
index db82051..31ecf4b 100644
--- a/patches/kcalendarcore/fix_isnan_error.patch
+++ b/patches/kcalendarcore/fix_isnan_error.patch
@@ -1,5 +1,5 @@
diff --git a/src/incidence.cpp b/src/incidence.cpp
-index 81cad1611..40a026262 100644
+index 81cad1611..d0207598a 100644
--- a/src/incidence.cpp
+++ b/src/incidence.cpp
@@ -26,6 +26,7 @@
@@ -10,3 +10,21 @@ index 81cad1611..40a026262 100644
#include <QStringList>
#include <QTextDocument> // for .toHtmlEscaped() and Qt::mightBeRichText()
+@@ -1047,7 +1048,7 @@ void Incidence::setGeoLatitude(float geolatitude)
+ return;
+ }
+
+- if (isnan(geolatitude)) {
++ if (std::isnan(geolatitude)) {
+ geolatitude = INVALID_LATLON;
+ }
+ if (geolatitude != INVALID_LATLON && (geolatitude < -90.0 || geolatitude > 90.0)) {
+@@ -1075,7 +1076,7 @@ void Incidence::setGeoLongitude(float geolongitude)
+ return;
+ }
+
+- if (isnan(geolongitude)) {
++ if (std::isnan(geolongitude)) {
+ geolongitude = INVALID_LATLON;
+ }
+ if (geolongitude != INVALID_LATLON && (geolongitude < -180.0 || geolongitude > 180.0)) {
More information about the Neon-commits
mailing list