mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
(#115) Drawing the anchor line even if the fault name is empty
This commit is contained in:
parent
1cf2c03f78
commit
610553644e
@ -427,7 +427,6 @@ void RivFaultPartMgr::createLabelWithAnchorLine(const cvf::Part* part)
|
|||||||
m_faultLabelLinePart = NULL;
|
m_faultLabelLinePart = NULL;
|
||||||
|
|
||||||
if (!part) return;
|
if (!part) return;
|
||||||
if (m_rimFault->name().isEmpty()) return;
|
|
||||||
|
|
||||||
cvf::BoundingBox bb = part->boundingBox();
|
cvf::BoundingBox bb = part->boundingBox();
|
||||||
|
|
||||||
@ -445,6 +444,7 @@ void RivFaultPartMgr::createLabelWithAnchorLine(const cvf::Part* part)
|
|||||||
labelPosition.z() += bb.extent().z() / 2;
|
labelPosition.z() += bb.extent().z() / 2;
|
||||||
|
|
||||||
// Fault label
|
// Fault label
|
||||||
|
if (!m_rimFault->name().isEmpty())
|
||||||
{
|
{
|
||||||
cvf::Font* standardFont = RiaApplication::instance()->standardFont();
|
cvf::Font* standardFont = RiaApplication::instance()->standardFont();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user