(#641) Hide extent lenth for polyline

This commit is contained in:
Magne Sjaastad 2015-11-30 14:01:13 +01:00
parent dc03844a55
commit 512701ce11

View File

@ -172,6 +172,15 @@ void RimCrossSection::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering&
optionsGroup->add(&m_extentLength);
optionsGroup->add(&showInactiveCells);
if (type == CS_POLYLINE)
{
m_extentLength.uiCapability()->setUiReadOnly(true);
}
else
{
m_extentLength.uiCapability()->setUiReadOnly(false);
}
updateWellExtentDefaultValue();
uiOrdering.setForgetRemainingFields(true);