From e053ad4c340af0a79a2355f160f2c69b764d58b8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 11 Mar 2021 16:22:07 +0000 Subject: [PATCH] shapelib permute: Fix to not always crash (!) Signed-off-by: Ian Jackson --- src/hidden.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hidden.rs b/src/hidden.rs index 03b4ff8f..22b8c952 100644 --- a/src/hidden.rs +++ b/src/hidden.rs @@ -415,7 +415,7 @@ mod vpid { pieces.push(piece); } - let mut new_notches = index_vec![]; + let mut new_notches = occ.notches.table.clone(); for (_occilk, (notches, pieces)) in ilks { // We must permute for if we have any views that are scrambled // or displaced obviously. For invisible too, so that when they -- 2.30.2