mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
Fix crash due to empty fault label parts
This commit is contained in:
@@ -594,6 +594,11 @@ void RivIntersectionPartMgr::generatePartGeometry()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RivIntersectionPartMgr::createFaultLabelParts(const std::vector<std::pair<QString, cvf::Vec3d> >& labelAndAnchors)
|
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();
|
cvf::Font* font = RiaApplication::instance()->customFont();
|
||||||
|
|
||||||
std::vector<cvf::Vec3f> lineVertices;
|
std::vector<cvf::Vec3f> lineVertices;
|
||||||
|
|||||||
Reference in New Issue
Block a user