Skip to content
Permalink
Browse files

Fix potential crash when using an RDF in Insert Precipitates

updates #922 fixes #922 closes #922

Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
  • Loading branch information
imikejackson committed Nov 15, 2019
1 parent 5de618f commit 744a1834f6b9337232cdd5b3cd1891a62691e650
@@ -1328,7 +1328,7 @@ void InsertPrecipitatePhases::place_precipitates(Int32ArrayType::Pointer exclusi
std::array<float, 3> boxdims = {m_SizeX, m_SizeY, m_SizeZ};

FloatVec3Type vec3 = m->getGeometryAs<ImageGeom>()->getSpacing();
std::array<float, 3> boxres = {vec3[0], vec3[1], vec3[1]};
std::array<float, 3> boxres = {vec3[0], vec3[1], vec3[2]};

float max_box_distance = sqrtf((m_SizeX * m_SizeX) + (m_SizeY * m_SizeY) + (m_SizeZ * m_SizeZ));

0 comments on commit 744a183

Please sign in to comment.
You can’t perform that action at this time.