Skip to content

Commit 35c0d57

Browse files
committed
Fix leaving off last non-zero coefficient when copy-paste DRF equation coefficients in.
1 parent 51227e3 commit 35c0d57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DrfSelect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ namespace
368368
assert( potential_coefs.size() == potential_coef_values.size() );
369369
assert( !potential_coefs.empty() && (last_non_zero_coef < potential_coefs.size()) );
370370

371-
potential_coefs.resize( last_non_zero_coef );
372-
potential_coef_values.resize( last_non_zero_coef );
371+
potential_coefs.resize( last_non_zero_coef + 1 );
372+
potential_coef_values.resize( last_non_zero_coef + 1 );
373373

374374
results.m_coefficients = potential_coef_values;
375375

0 commit comments

Comments
 (0)