Skip to content

Commit fd72fcc

Browse files
author
Arthur Glowacki
committed
Fix for 8bmb new step scan format
1 parent f8d24aa commit fd72fcc

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/io/file/hl_file_io.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,14 @@ DLL_EXPORT bool load_spectra_volume(std::string dataset_directory,
15031503
}
15041504
}
15051505
}
1506+
}
1507+
else
1508+
{
1509+
// copy prev row
1510+
if(i>0)
1511+
{
1512+
(*spectra_volume)[i] = (*spectra_volume)[i-1];
1513+
}
15061514
}
15071515
}
15081516
else
@@ -1525,6 +1533,14 @@ DLL_EXPORT bool load_spectra_volume(std::string dataset_directory,
15251533
}
15261534
}
15271535
}
1536+
else
1537+
{
1538+
// copy prev row
1539+
if(i>0)
1540+
{
1541+
(*spectra_volume)[i] = (*spectra_volume)[i-1];
1542+
}
1543+
}
15281544
}
15291545
}
15301546
}

0 commit comments

Comments
 (0)