#3586 Several minor improvements to 2d maps

* disable z-scale
* hide some cell and grid appearance groups
* disable grid lines on faults
This commit is contained in:
Gaute Lindkvist
2018-10-31 10:36:04 +01:00
parent 68eef3f9d8
commit fc9686faae
5 changed files with 47 additions and 14 deletions

View File

@@ -1807,11 +1807,13 @@ void RiuMainWindow::slotScaleChanged(int scaleValue)
//--------------------------------------------------------------------------------------------------
void RiuMainWindow::updateScaleValue()
{
if (RiaApplication::instance()->activeReservoirView())
Rim3dView* view = RiaApplication::instance()->activeReservoirView();
bool isRegularReservoirView = view && dynamic_cast<Rim2dEclipseView*>(view) == nullptr;
if (isRegularReservoirView)
{
m_scaleFactor->setEnabled(true);
int scaleValue = static_cast<int>(RiaApplication::instance()->activeReservoirView()->scaleZ()); // Round down is probably ok.
int scaleValue = static_cast<int>(view->scaleZ()); // Round down is probably ok.
m_scaleFactor->blockSignals(true);
m_scaleFactor->setValue(scaleValue);
m_scaleFactor->blockSignals(false);