chiark / gitweb /
shapelib permute: Fix to not always crash (!)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 11 Mar 2021 16:22:07 +0000 (16:22 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 11 Mar 2021 16:24:26 +0000 (16:24 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/hidden.rs

index 03b4ff8fe835bf957b63d85f456e8dd82b9eb6e8..22b8c9522ecdb78b17f58267d274e3360733313e 100644 (file)
@@ -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