mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#115) Stopped creating text drawables for empty strings
Note: Adding empty strings to cvf::TextDrawer will cause asserts.
This commit is contained in:
parent
a9ecbd9899
commit
1cf2c03f78
@ -427,6 +427,7 @@ void RivFaultPartMgr::createLabelWithAnchorLine(const cvf::Part* part)
|
||||
m_faultLabelLinePart = NULL;
|
||||
|
||||
if (!part) return;
|
||||
if (m_rimFault->name().isEmpty()) return;
|
||||
|
||||
cvf::BoundingBox bb = part->boundingBox();
|
||||
|
||||
|
@ -282,7 +282,7 @@ void RivWellHeadPartMgr::buildWellHeadParts(size_t frameIndex)
|
||||
m_wellHeadParts.push_back(part.p());
|
||||
}
|
||||
|
||||
if (m_rimReservoirView->wellCollection()->showWellLabel() && well->showWellLabel())
|
||||
if (m_rimReservoirView->wellCollection()->showWellLabel() && well->showWellLabel() && !well->name().isEmpty())
|
||||
{
|
||||
cvf::Font* standardFont = RiaApplication::instance()->standardFont();
|
||||
|
||||
|
@ -185,7 +185,7 @@ void RivWellPathPartMgr::buildWellPathParts(cvf::Vec3d displayModelOffset, doubl
|
||||
textPosition.z() += 1.2 * characteristicCellSize;
|
||||
|
||||
m_wellLabelPart = NULL;
|
||||
if (m_wellPathCollection->showWellPathLabel() && m_rimWellPath->showWellPathLabel())
|
||||
if (m_wellPathCollection->showWellPathLabel() && m_rimWellPath->showWellPathLabel() && !m_rimWellPath->name().isEmpty())
|
||||
{
|
||||
cvf::Font* standardFont = RiaApplication::instance()->standardFont();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user