Skip to content

Commit f380f3d

Browse files
author
Arthur Glowacki
committed
Fix bug where scaler_map may be size 0 when loading mda
1 parent 4543cf2 commit f380f3d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/io/file/mda_io.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,9 +1254,8 @@ void MDA_IO<T_real>::_load_extra_pvs_vector()
12541254
{
12551255
tokens.push_back(token);
12561256
}
1257-
if(tokens.size() > 2)
1257+
if(tokens.size() > 2 && _scan_info.scaler_maps.size() > 0)
12581258
{
1259-
12601259
auto o_map = _scan_info.scaler_maps.at(0);
12611260
data_struct::Scaler_Map<T_real> s_map;
12621261
s_map.values.resize(o_map.values.rows(), o_map.values.cols());

0 commit comments

Comments
 (0)