Fix crash due to empty fault label parts

This commit is contained in:
Jacob Støren 2018-04-13 11:30:01 +02:00
parent 29a8158a18
commit 0bf6db50f9

View File

@ -594,6 +594,11 @@ void RivIntersectionPartMgr::generatePartGeometry()
//--------------------------------------------------------------------------------------------------
void RivIntersectionPartMgr::createFaultLabelParts(const std::vector<std::pair<QString, cvf::Vec3d> >& labelAndAnchors)
{
m_faultMeshLabels = nullptr;
m_faultMeshLabelLines = nullptr;
if (!labelAndAnchors.size()) return;
cvf::Font* font = RiaApplication::instance()->customFont();
std::vector<cvf::Vec3f> lineVertices;