diff --git a/geometry_generator/fabric_geometry.py b/geometry_generator/fabric_geometry.py index 8377553e..c2dbe3aa 100644 --- a/geometry_generator/fabric_geometry.py +++ b/geometry_generator/fabric_geometry.py @@ -101,7 +101,7 @@ def generateGeometry(self) -> None: maxWidth = 0 maxSmRelX = 0 maxSmWidth = 0 - for i in range(self.fabric.numberOfColumns): + for i in range(self.fabric.numberOfRows): maxWidth = max(maxWidth, tileGeometries[i][j].width) maxSmRelX = max(maxSmRelX, tileGeometries[i][j].smGeometry.relX) maxSmWidth = max(maxSmWidth, tileGeometries[i][j].smGeometry.width)