修复加载测温区时索引还原失败的问题

This commit is contained in:
zqm
2025-11-11 14:40:16 +08:00
parent 376f12e061
commit 2adeb0e31f

View File

@@ -3061,15 +3061,16 @@ namespace JoyD.Windows.CS
}
// 创建新的测温区并添加到列表
// 从CSV文件第一列获取原始索引值
int.TryParse(parts[0], out int regionIndex);
RegionInfo region = new RegionInfo
{
Index = index,
Index = regionIndex,
ImageRectangle = new Rectangle(x, y, width, height),
Color = color
};
_drawnRectangles.Add(region);
index++;
}
}
catch (Exception ex)