mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user