From ed59f0b618fbc5a8e9f92c05d12079a384c158ef Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Tue, 5 Nov 2019 12:19:21 +0100 Subject: [PATCH] Fix "Export Property To File" for RimEclipseResultCase. --- .../RicSaveEclipseInputPropertyFeature.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ApplicationCode/Commands/ExportCommands/RicSaveEclipseInputPropertyFeature.cpp b/ApplicationCode/Commands/ExportCommands/RicSaveEclipseInputPropertyFeature.cpp index f90561e934..5f35e9042c 100644 --- a/ApplicationCode/Commands/ExportCommands/RicSaveEclipseInputPropertyFeature.cpp +++ b/ApplicationCode/Commands/ExportCommands/RicSaveEclipseInputPropertyFeature.cpp @@ -25,7 +25,7 @@ #include "RicEclipseCellResultToFileImpl.h" #include "RicExportFeatureImpl.h" -#include "RimEclipseInputCase.h" +#include "RimEclipseCase.h" #include "RimEclipseInputProperty.h" #include "RimEclipseInputPropertyCollection.h" #include "RimExportInputPropertySettings.h" @@ -81,23 +81,23 @@ void RicSaveEclipseInputPropertyFeature::onActionTriggered( bool isChecked ) exportSettings.eclipseKeyword = inputProperty->eclipseKeyword; // Find input reservoir for this property - RimEclipseInputCase* inputReservoir = nullptr; + RimEclipseCase* eclipseCase = nullptr; { RimEclipseInputPropertyCollection* inputPropertyCollection = dynamic_cast( inputProperty->parentField()->ownerObject() ); if ( !inputPropertyCollection ) return; - inputReservoir = dynamic_cast( inputPropertyCollection->parentField()->ownerObject() ); + eclipseCase = dynamic_cast( inputPropertyCollection->parentField()->ownerObject() ); } - if ( !inputReservoir ) return; + if ( !eclipseCase ) return; { RiaApplication* app = RiaApplication::instance(); QString projectFolder = app->currentProjectPath(); if ( projectFolder.isEmpty() ) { - projectFolder = inputReservoir->locationOnDisc(); + projectFolder = eclipseCase->locationOnDisc(); } QString outputFileName = projectFolder + "/" + inputProperty->eclipseKeyword; @@ -117,7 +117,7 @@ void RicSaveEclipseInputPropertyFeature::onActionTriggered( bool isChecked ) QString errorMsg; bool isOk = RicEclipseCellResultToFileImpl::writePropertyToTextFile( exportSettings.fileName, - inputReservoir->eclipseCaseData(), + eclipseCase->eclipseCaseData(), 0, inputProperty->resultName, exportSettings.eclipseKeyword,