mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#1870 For fishbones, clamp values so that start MD and end MD always consitutes a valid range where start MD <= end MD
This commit is contained in:
1 parent
adfd1f38f5
commit
f74dc80838
1 file changed
+10
@@ -373,6 +373,16 @@ void RimFishbonesMultipleSubs::fieldChangedByUi(const caf::PdmFieldHandle* chang
|
||||
recomputeLocations = true;
|
||||
}
|
||||
|
||||
if (changedField == &m_rangeStart && m_rangeStart > m_rangeEnd)
|
||||
{
|
||||
m_rangeEnd = m_rangeStart;
|
||||
}
|
||||
|
||||
if (changedField == &m_rangeEnd && m_rangeEnd < m_rangeStart)
|
||||
{
|
||||
m_rangeStart = m_rangeEnd;
|
||||
}
|
||||
|
||||
if (changedField == &m_rangeSubSpacing &&
|
||||
m_rangeSubSpacing() < 13.0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user