(#690) Fixed crash on linux when selecting cells with high cell index.

Caused by unintentional pointer arithmetics on string literal.
This commit is contained in:
Jacob Storen 2015-12-09 02:20:33 -08:00
parent 4b39ba4508
commit cbe728c9af
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ void RivFemPartPartMgr::generatePartGeometry(RivFemPartGeometryGenerator& geoBui
}
cvf::ref<cvf::Part> part = new cvf::Part;
part->setName("Grid mesh " + m_gridIdx);
part->setName("Grid mesh " + cvf::String(m_gridIdx));
part->setDrawable(geoMesh.p());
part->setTransform(m_scaleTransform.p());

View File

@ -61,7 +61,7 @@ RivSingleCellPartGenerator::RivSingleCellPartGenerator(RimGeoMechCase* rimGeoMec
cvf::ref<cvf::Part> RivSingleCellPartGenerator::createPart(const cvf::Color3f color)
{
cvf::ref<cvf::Part> part = new cvf::Part;
part->setName("Hightlight part for cell index " + m_cellIndex);
part->setName(cvf::String("Hightlight part for cell index ") + cvf::String((cvf::int64)m_cellIndex));
part->setDrawable(createMeshDrawable().p());
cvf::ref<cvf::Effect> eff;