Skip to content

Commit

Permalink
hotfix for out of bounds access bug in image loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Tooley committed Feb 6, 2019
1 parent a887444 commit 51d2ea2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ Vec_unique Map::get_dim_data_dmda_blocked(uinteger dim) const
void Map::calculate_basis()
{
// Get the full Nd basis
floatvector scalings(m_ndim, 0.0);
floatvector offsets(m_ndim, 0.0);
floatvector scalings(this->m_v_node_spacing.size(), 0.0);
floatvector offsets(this->m_v_node_spacing.size(), 0.0);

std::transform(this->m_v_node_spacing.begin(), this->m_v_node_spacing.end(), scalings.begin(),
[](floating a) -> floating { return 1 / a; });
Expand Down

0 comments on commit 51d2ea2

Please sign in to comment.