head 1.2; access; symbols pkgsrc-2025Q4:1.1.0.10 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.8 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.6 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.4 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.2 pkgsrc-2024Q4-base:1.1; locks; strict; comment @// @; 1.2 date 2026.02.09.23.01.08; author yhardy; state dead; branches; next 1.1; commitid CKeBy2O5KL2WUKtG; 1.1 date 2024.12.18.12.13.44; author nia; state Exp; branches; next ; commitid jYRwg0Hm3QBbMYBF; desc @@ 1.2 log @editors/xournalpp: remove obsolete patch Upstream changed the implementation, so the ambiguous use of sqrt(2) has been removed. @ text @$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; } @ 1.1 log @xournalpp: Fix ambiguous reference to sqrt(2). @ text @d1 1 a1 1 $NetBSD$ @