diff --git a/Designing/WinLib/WinCalculate.lua b/Designing/WinLib/WinCalculate.lua index b03adc4..e831874 100644 --- a/Designing/WinLib/WinCalculate.lua +++ b/Designing/WinLib/WinCalculate.lua @@ -1603,6 +1603,11 @@ local function CalcFillGeo( nPartId, nOutlineLayerId) if bRect then EgtSetInfo( nGeoLayerId, WIN_GEOWIDTH, vtEdge1:len()) EgtSetInfo( nGeoLayerId, WIN_GEOHEIGHT, vtEdge2:len()) + else + -- se non รจ rettangolare salvo le dimensioni del suo box orientato in modo ottimale + local _, dDim1, dDim2 = EgtCurveMinAreaRectangleXY( nCompo) + EgtSetInfo( nGeoLayerId, WIN_GEOWIDTH, dDim1) + EgtSetInfo( nGeoLayerId, WIN_GEOHEIGHT, dDim2) end EgtErase( nCompo)