mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-27 16:57:01 -06:00
#5837 Well Measurements : Allow paste of curves
This commit is contained in:
parent
eb46552e60
commit
8c64dbeae9
@ -79,6 +79,6 @@ void RicNewWellMeasurementCurveFeature::onActionTriggered( bool isChecked )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicNewWellMeasurementCurveFeature::setupActionLook( QAction* actionToSetup )
|
||||
{
|
||||
// actionToSetup->setIcon( QIcon( ":/WellLogCurve16x16.png" ) );
|
||||
actionToSetup->setIcon( QIcon( ":/WellLogCurve16x16.png" ) );
|
||||
actionToSetup->setText( "New Well Measurement Curve" );
|
||||
}
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "RimWellLogExtractionCurve.h"
|
||||
#include "RimWellLogFileCurve.h"
|
||||
#include "RimWellLogTrack.h"
|
||||
#include "RimWellMeasurementCurve.h"
|
||||
|
||||
#include "cafPdmObjectGroup.h"
|
||||
#include "cafPdmObjectHandle.h"
|
||||
@ -105,8 +106,9 @@ void RicPasteWellLogCurveFeature::onActionTriggered( bool isChecked )
|
||||
continue;
|
||||
}
|
||||
|
||||
RimWellLogFileCurve* fileCurve = dynamic_cast<RimWellLogFileCurve*>( sourceObjects[i].p() );
|
||||
if ( fileCurve )
|
||||
RimWellLogFileCurve* fileCurve = dynamic_cast<RimWellLogFileCurve*>( sourceObjects[i].p() );
|
||||
RimWellMeasurementCurve* measurementCurve = dynamic_cast<RimWellMeasurementCurve*>( sourceObjects[i].p() );
|
||||
if ( fileCurve || measurementCurve )
|
||||
{
|
||||
RimWellLogFileCurve* newObject = dynamic_cast<RimWellLogFileCurve*>(
|
||||
sourceObjects[i]->xmlCapability()->copyByXmlSerialization( caf::PdmDefaultObjectFactory::instance() ) );
|
||||
|
Loading…
Reference in New Issue
Block a user