pkgsrc-Changes archive

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

CVS commit: pkgsrc/editors/xournalpp



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Dec 18 12:13:44 UTC 2024

Modified Files:
        pkgsrc/editors/xournalpp: distinfo
Added Files:
        pkgsrc/editors/xournalpp/patches: patch-src_core_model_Snapping.cpp

Log Message:
xournalpp: Fix ambiguous reference to sqrt(2).


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 pkgsrc/editors/xournalpp/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/editors/xournalpp/patches/patch-src_core_model_Snapping.cpp

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

Modified files:

Index: pkgsrc/editors/xournalpp/distinfo
diff -u pkgsrc/editors/xournalpp/distinfo:1.18 pkgsrc/editors/xournalpp/distinfo:1.19
--- pkgsrc/editors/xournalpp/distinfo:1.18      Wed Dec 11 10:37:05 2024
+++ pkgsrc/editors/xournalpp/distinfo   Wed Dec 18 12:13:44 2024
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.18 2024/12/11 10:37:05 wiz Exp $
+$NetBSD: distinfo,v 1.19 2024/12/18 12:13:44 nia Exp $
 
 BLAKE2s (xournalpp-1.2.5.tar.gz) = 252ed1ac9dffa3d5464f3d7758cc665be18fe45392246ac734d660780d48b3c4
 SHA512 (xournalpp-1.2.5.tar.gz) = c95854b73b3b63fbb154e5c952a15fe94bfb8e71a52f0cf0b606a5be792c1375d540dd820bfbda182d38ad8627afc4eb10c9b636d1be0fe6e77a462e2e6b6b9f
@@ -7,3 +7,4 @@ SHA1 (patch-CMakeLists.txt) = 87ba10a924
 SHA1 (patch-po_CMakeLists.txt) = 897b4f9507b48be394409deda8170fe7d39f008c
 SHA1 (patch-src_core_control_DeviceListHelper.cpp) = 069fae3eb58798406e4fa8dbff0d02aa8e0a27ef
 SHA1 (patch-src_core_control_settings_Settings.cpp) = 19cf2b2ceedc3d59c0290ea81727cb0c27e02ba5
+SHA1 (patch-src_core_model_Snapping.cpp) = eec08817c1c06d718f1439b68b567ba82e47f374

Added files:

Index: pkgsrc/editors/xournalpp/patches/patch-src_core_model_Snapping.cpp
diff -u /dev/null pkgsrc/editors/xournalpp/patches/patch-src_core_model_Snapping.cpp:1.1
--- /dev/null   Wed Dec 18 12:13:44 2024
+++ pkgsrc/editors/xournalpp/patches/patch-src_core_model_Snapping.cpp  Wed Dec 18 12:13:44 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_core_model_Snapping.cpp,v 1.1 2024/12/18 12:13:44 nia Exp $
+
+Fix ambiguous reference to sqrt(int).
+
+--- src/core/model/Snapping.cpp.orig   2024-12-18 12:12:44.763157366 +0000
++++ src/core/model/Snapping.cpp
+@@ -21,7 +21,7 @@ double snapHorizontally(double x, double
+ }
+ 
+ Point snapToGrid(Point const& pos, double gridSize, double tolerance) {
+-    double abs_tolerance = (gridSize / sqrt(2)) * tolerance;
++    double abs_tolerance = (gridSize / sqrt(2.0)) * tolerance;
+     Point ret{roundToMultiple(pos.x, gridSize), roundToMultiple(pos.y, gridSize), pos.z};
+     return distance(ret, pos) < abs_tolerance ? ret : pos;
+ }



Home | Main Index | Thread Index | Old Index