diff --git a/src/drawApp/relayCabinetLayoutApp.ts b/src/drawApp/relayCabinetLayoutApp.ts index 488d0ff..4ce2a6d 100644 --- a/src/drawApp/relayCabinetLayoutApp.ts +++ b/src/drawApp/relayCabinetLayoutApp.ts @@ -435,7 +435,11 @@ export function creatCiCjListByCombinationtype( ciCjList.cjList[i] = new relayCabinetGraphicData.CjDataSet(); ciCjList.cjList[i].name = 'D' + (i + 1); for (let j = 0; j < rows; j++) { - if (i < cols - 1 || (i == cols - 1 && j < allCjData.length % rows)) { + if ( + i < cols - 1 || + (i == cols - 1 && j < allCjData.length % rows) || + (i == cols - 1 && allCjData.length % rows == 0) + ) { ciCjList.cjList[i].bitList[j] = allCjData[i * rows + j]; } else { ciCjList.cjList[i].bitList[j] = new relayCabinetGraphicData.CjData();