mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-20 04:28:53 -05:00
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) <noreply@anthropic.com>
This commit is contained in:
1 parent
2d1f2217e5
commit
7843de145b
1 file changed
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user