summaryrefslogtreecommitdiff
path: root/geography/qgis/patches/patch-src_gui_plot_qgsplotrubberband.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'geography/qgis/patches/patch-src_gui_plot_qgsplotrubberband.cpp')
-rw-r--r--geography/qgis/patches/patch-src_gui_plot_qgsplotrubberband.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/geography/qgis/patches/patch-src_gui_plot_qgsplotrubberband.cpp b/geography/qgis/patches/patch-src_gui_plot_qgsplotrubberband.cpp
new file mode 100644
index 00000000000..834d8a5fbda
--- /dev/null
+++ b/geography/qgis/patches/patch-src_gui_plot_qgsplotrubberband.cpp
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_gui_plot_qgsplotrubberband.cpp,v 1.1 2022/11/28 14:25:31 gdt Exp $
+
+Use standards-required include for std::fabs().
+
+Reported upstream at https://github.com/qgis/QGIS/pull/51040
+
+--- src/gui/plot/qgsplotrubberband.cpp.orig 2022-11-18 12:10:21.000000000 +0000
++++ src/gui/plot/qgsplotrubberband.cpp
+@@ -20,7 +20,7 @@
+
+ #include <QGraphicsScene>
+ #include <QGraphicsRectItem>
+-#include <math.h>
++#include <cmath>
+
+ QgsPlotRubberBand::QgsPlotRubberBand( QgsPlotCanvas *canvas )
+ : mCanvas( canvas )