mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 08:25:03 -05:00
Fix crash due to empty fault label parts
This commit is contained in:
1 parent
29a8158a18
commit
0bf6db50f9
1 file changed
+5
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user