(#115) Stopped creating text drawables for empty strings

Note: Adding empty strings to cvf::TextDrawer will cause asserts.
This commit is contained in:
Pål Hagen
2015-07-02 16:11:34 +02:00
parent a9ecbd9899
commit 1cf2c03f78
3 changed files with 3 additions and 2 deletions

View File

@@ -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();