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 5, 2019
1 parent 3b4f19f commit 2eec80e
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 @@ -246,8 +246,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(),
Expand Down

0 comments on commit 2eec80e

Please sign in to comment.