Skip to content

Commit 2ae196d

Browse files
committed
Ignore moved refs when assessing OOB objects
1 parent da14811 commit 2ae196d

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "StandardsValidator"
3-
version = "2.21.1"
3+
version = "2.21.2"
44
edition = "2021"
55

66
[dependencies]

src/oob.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub fn fix_oob(plugin: &mut Plugin) {
1414

1515
for (grid, cell) in &exteriors {
1616
for (key, reference) in &cell.references {
17-
if reference.deleted == Some(true) {
17+
if reference.deleted == Some(true) || reference.moved_cell.is_some() {
1818
continue;
1919
}
2020

src/validators/cells.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ impl Handler<'_> for CellValidator {
140140
reference.id
141141
)
142142
}
143-
if !invalid_coords && !record.is_interior() {
143+
if !invalid_coords && !record.is_interior() && reference.moved_cell.is_none() {
144144
let (x, y) = record.data.grid;
145145
let x_bound = CELL_SIZE * x as f64;
146146
let y_bound = CELL_SIZE * y as f64;

0 commit comments

Comments
 (0)