mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 15:36:09 -06:00
Fixed bug discovered by doing (#357)
This commit is contained in:
parent
5cd416ce6b
commit
6244cf98bf
@ -460,7 +460,8 @@ void RivFaultPartMgr::createLabelWithAnchorLine(const cvf::Part* part)
|
||||
RimFault* noConstRimFault = const_cast<RimFault*>(m_rimFault);
|
||||
if (noConstRimFault)
|
||||
{
|
||||
RimFaultCollection* parentObject = dynamic_cast<RimFaultCollection*>(noConstRimFault->objectHandle());
|
||||
RimFaultCollection* parentObject;
|
||||
noConstRimFault->firstAnchestorOrThisOfType(parentObject);
|
||||
if (parentObject)
|
||||
{
|
||||
defWellLabelColor = parentObject->faultLabelColor();;
|
||||
|
Loading…
Reference in New Issue
Block a user