mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -06:00
(#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:
parent
4b39ba4508
commit
cbe728c9af
@ -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());
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user