From 26526bb249c97e27e757acae975239b1c609a1f7 Mon Sep 17 00:00:00 2001 From: Emilia Date: Sun, 12 Jan 2025 12:03:28 -0500 Subject: [PATCH] lib fix: Disable height checking for pool direction --- plate-tool-lib/src/transfer_region.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)"); }