From: Ian Jackson Date: Thu, 11 Mar 2021 16:22:07 +0000 (+0000) Subject: shapelib permute: Fix to not always crash (!) X-Git-Tag: otter-0.4.0~169 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e053ad4c340af0a79a2355f160f2c69b764d58b8;p=otter.git shapelib permute: Fix to not always crash (!) Signed-off-by: Ian Jackson --- 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