Merge 13.17 and 13.18: a dragged curve point stays on its neighbour, bands match one band, SheetTeardownTests on 13.4a's sheet; AGENTS and TASKS

This commit is contained in:
ZacharyZhang-NY committed 2026-10-01 18:18:42 -04:00
1 parent a004db172b
commit 72230b09b8
7 files changed
+43 -16

No files matched your search

+5 -2
View File
@@ -70,8 +70,11 @@ void CameraRawCurveControls::continueDrag(QPointF at, QSizeF size)
return;
points[drag.index].y = y;
// Ends stay ends; the rest keep their order.
if (drag.index > 0 && drag.index < points.size() - 1)
points[drag.index].x = std::min(points[drag.index + 1].x - 0.01, std::max(points[drag.index - 1].x + 0.01, x));
if (drag.index > 0 && drag.index < points.size() - 1) {
// Fix beyond Swift: just inside, so the repair keeps it.
const double inside = 1e-9;
points[drag.index].x = std::min(points[drag.index + 1].x - 0.01 - inside, std::max(points[drag.index - 1].x + 0.01 + inside, x));
}
store(points);
return;
}