#2486 2d intersection view. Temporary fix to avoid crash

This commit is contained in:
Bjørn Erik Jensen 2018-03-09 10:22:27 +01:00
parent ac5466f83d
commit 16551c05c4

View File

@ -43,6 +43,7 @@
#include "RivHexGridIntersectionTools.h" #include "RivHexGridIntersectionTools.h"
#include "RivIntersectionGeometryGenerator.h" #include "RivIntersectionGeometryGenerator.h"
#include "RivObjectSourceInfo.h"
#include "RivIntersectionSourceInfo.h" #include "RivIntersectionSourceInfo.h"
#include "RivPartPriority.h" #include "RivPartPriority.h"
#include "RivPipeGeometryGenerator.h" #include "RivPipeGeometryGenerator.h"
@ -812,7 +813,7 @@ void RivIntersectionPartMgr::appendWellPipePartsToModel(cvf::ModelBasicList* mod
pipeCrossSectionVxCount = wellPathColl->wellPathCrossSectionVertexCount(); pipeCrossSectionVxCount = wellPathColl->wellPathCrossSectionVertexCount();
wellPipeColor = wellPath->wellPathColor(); wellPipeColor = wellPath->wellPathColor();
createSourceInfoFunc = [&](size_t brIdx) { return new RivWellPathSourceInfo(wellPath, m_rimCrossSection->correspondingIntersectionView()); }; createSourceInfoFunc = [&](size_t brIdx) { return new RivObjectSourceInfo(wellPath); }; //Temporary fix to avoid crash
} }
// Create pipe geometry // Create pipe geometry