diff --git a/plate-tool-lib/src/transfer_region.rs b/plate-tool-lib/src/transfer_region.rs index a6be77d..b7e60d0 100644 --- a/plate-tool-lib/src/transfer_region.rs +++ b/plate-tool-lib/src/transfer_region.rs @@ -457,10 +457,10 @@ impl TransferRegion { } // Sufficient to check if the corners are in-bounds let source_max = self.source_plate.size(); - if s1.row > source_max.0 || s2.row > source_max.0 { + if (s1.row > source_max.0 || s2.row > source_max.0) && il_dest.0 != 0 { return Err("Source region is out-of-bounds! (Too tall)"); } - if s1.col > source_max.1 || s2.col > source_max.1 { + if (s1.col > source_max.1 || s2.col > source_max.1) && il_dest.1 != 0 { // log::debug!("s1.1: {}, max.1: {}", s1.1, source_max.1); return Err("Source region is out-of-bounds! (Too wide)"); }