mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
#2121 Intersections: Set dip angle range to [0, 180]
This commit is contained in:
1 parent
3983aecd2e
commit
17cb520879
1 file changed
+7
-1
@@ -649,12 +649,18 @@ void RimIntersection::defineEditorAttribute(const caf::PdmFieldHandle* field, QS
|
||||
caf::PdmUiDoubleSliderEditorAttribute* doubleSliderAttrib = dynamic_cast<caf::PdmUiDoubleSliderEditorAttribute*>(attribute);
|
||||
if (doubleSliderAttrib)
|
||||
{
|
||||
if (field == &m_azimuthAngle || field == &m_dipAngle)
|
||||
if (field == &m_azimuthAngle)
|
||||
{
|
||||
doubleSliderAttrib->m_minimum = 0;
|
||||
doubleSliderAttrib->m_maximum = 360;
|
||||
doubleSliderAttrib->m_sliderTickCount = 360;
|
||||
}
|
||||
else if (field == &m_dipAngle)
|
||||
{
|
||||
doubleSliderAttrib->m_minimum = 0;
|
||||
doubleSliderAttrib->m_maximum = 180;
|
||||
doubleSliderAttrib->m_sliderTickCount = 180;
|
||||
}
|
||||
}
|
||||
else if (field == &inputPolyLineFromViewerEnabled)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user