fix bug generating profile spreadsheets

This commit is contained in:
Grahame Grieve 2023-11-05 09:16:27 +11:00
parent 307ae9b0a0
commit cb8b959322
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ public class StructureDefinitionSpreadsheetGenerator extends CanonicalSpreadshee
addStructureDefinitionMetadata(renderCanonicalResource(sd, forMultiple), sd); addStructureDefinitionMetadata(renderCanonicalResource(sd, forMultiple), sd);
Sheet sheet = forMultiple && hasSheet("Elements") ? getSheet("Elements") : makeSheet("Elements"); Sheet sheet = forMultiple && hasSheet("Elements") ? getSheet("Elements") : makeSheet("Elements");
if (sheet.getLastRowNum() == 0) { if (sheet.getPhysicalNumberOfRows() == 0) {
Row headerRow = sheet.createRow(0); Row headerRow = sheet.createRow(0);
int coffset = forMultiple ? 1 : 0; int coffset = forMultiple ? 1 : 0;
for (int i = 0; i < titles.length; i++) { for (int i = 0; i < titles.length; i++) {