From fa8948c1b6e9cfffa8eb53fe3b8cbb57533c963c Mon Sep 17 00:00:00 2001 From: Dylan Jeannin Date: Mon, 22 Jun 2026 15:18:08 +0200 Subject: [PATCH] Meshing: Debug error caused by index out of range when adding an empty transect on a reach --- src/View/Geometry/PlotAC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/View/Geometry/PlotAC.py b/src/View/Geometry/PlotAC.py index 1b846c5b..9e7127d4 100644 --- a/src/View/Geometry/PlotAC.py +++ b/src/View/Geometry/PlotAC.py @@ -143,7 +143,7 @@ class PlotAC(PamhyrPlot): ] else: color = self.color_incomplete_gl[ - lincomplete.index(txt) + lincomplete.index(txt) % len(self.color_incomplete_gl) ] annotation = self.canvas.axes.annotate(