DataWindow :

- correzione WinGetSectionsTotalLenghts.
This commit is contained in:
SaraP
2025-08-07 16:01:11 +02:00
parent 97dd2074df
commit 199a6e30a5
+2 -1
View File
@@ -289,10 +289,11 @@ local function WinGetSectionsTotalLenghts()
if ( abs( WDG.SECTIONS_LENGTHS[i].W - dWidth) < GEO.EPS_SMALL and abs( WDG.SECTIONS_LENGTHS[i].H - dHeight) < GEO.EPS_SMALL) then
bFound = true
table.insert( WDG.SECTIONS_LENGTHS[i].L, dLen)
WDG.SECTIONS_LENGTHS[i].TotL = WDG.SECTIONS_LENGTHS[i].TotL + dLen
end
end
if not bFound then
table.insert( WDG.SECTIONS_LENGTHS, { W = dWidth, H = dHeight, L = {dLen}})
table.insert( WDG.SECTIONS_LENGTHS, { W = dWidth, H = dHeight, L = {dLen}, TotL = dLen})
end
end
end