From 7843de145be5382fd524f91f0e95b7057e80238a Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Fri, 20 Mar 2026 16:19:16 -0400 Subject: [PATCH] fix: swap bounding box dimensions in BestFitViewerForm Size(width, length) maps Width to vertical and Length to horizontal in PlateView, but BoundingWidth (the longer dimension) was being passed as Width (vertical) instead of Length (horizontal), causing the bounding box to appear portrait instead of landscape. Co-Authored-By: Claude Opus 4.6 (1M context) --- OpenNest/Forms/BestFitViewerForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenNest/Forms/BestFitViewerForm.cs b/OpenNest/Forms/BestFitViewerForm.cs index 86ccd6d..f483a16 100644 --- a/OpenNest/Forms/BestFitViewerForm.cs +++ b/OpenNest/Forms/BestFitViewerForm.cs @@ -291,8 +291,8 @@ namespace OpenNest.Forms cell.PartColor = partColor; cell.Dock = DockStyle.Fill; cell.Plate.Size = new Geometry.Size( - result.BoundingWidth, - result.BoundingHeight); + result.BoundingHeight, + result.BoundingWidth); var parts = result.BuildParts(drawing);