pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

qgis: Add patch to remediate bare isnan



Module Name:	pkgsrc-wip
Committed By:	Greg Troxel <gdt%lexort.com@localhost>
Pushed By:	gdt
Date:		Fri Jan 26 09:09:42 2024 -0500
Changeset:	006a41d31535b37c70b76e0b116fa31c607f687f

Modified Files:
	qgis/distinfo
Added Files:
	qgis/patches/patch-src_core_raster_qgsrasterattributetable.cpp

Log Message:
qgis: Add patch to remediate bare isnan

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=006a41d31535b37c70b76e0b116fa31c607f687f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 qgis/distinfo                                           |  1 +
 .../patch-src_core_raster_qgsrasterattributetable.cpp   | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)

diffs:
diff --git a/qgis/distinfo b/qgis/distinfo
index f3728a2045..a1fc36bbac 100644
--- a/qgis/distinfo
+++ b/qgis/distinfo
@@ -7,5 +7,6 @@ SHA1 (patch-cmake_FindQwt.cmake) = 8650de11116170baa7813bc3d4467f88888f1cf2
 SHA1 (patch-mac_CMakeLists.txt) = 7967c0fa4eed8dc2ce24192bdbec8ae8a336be1c
 SHA1 (patch-mac_cmake_1qt.cmake.in) = d74f7201849ef6dd83f39251e466eb04c791c0e6
 SHA1 (patch-src_core_qgsapplication.cpp) = 54bba734969cd9fd90a2317d8c1531da2827d145
+SHA1 (patch-src_core_raster_qgsrasterattributetable.cpp) = db31738096e60fa20b546849f56a017a44d0b6e7
 SHA1 (patch-src_crssync_CMakeLists.txt) = a751be3f55b57a3d039e07c441a4ac81ba735e60
 SHA1 (patch-src_server_CMakeLists.txt) = 7e0017979a3b143800c0b50244e8105f02562a65
diff --git a/qgis/patches/patch-src_core_raster_qgsrasterattributetable.cpp b/qgis/patches/patch-src_core_raster_qgsrasterattributetable.cpp
new file mode 100644
index 0000000000..2c62f9c949
--- /dev/null
+++ b/qgis/patches/patch-src_core_raster_qgsrasterattributetable.cpp
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Remediate bare isnan usage.
+
+Queried via qgis-developer@ on 20240126.
+
+--- src/core/raster/qgsrasterattributetable.cpp.orig	2024-01-26 14:03:42.143505820 +0000
++++ src/core/raster/qgsrasterattributetable.cpp
+@@ -1359,7 +1359,7 @@ QgsGradientColorRamp QgsRasterAttributeT
+       if ( range != 0 )
+       {
+ 
+-        if ( ! isnan( min ) && ! isnan( max ) )
++        if ( ! std::isnan( min ) && ! std::isnan( max ) )
+         {
+           const QList<QVariantList> dataCopy( orderedRows() );
+ 


Home | Main Index | Thread Index | Old Index