mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6553 Disallow adding of well log tracks into multi plots
This commit is contained in:
parent
bbdda4215b
commit
7fbdbafda6
@ -25,6 +25,7 @@
|
|||||||
#include "RimPlot.h"
|
#include "RimPlot.h"
|
||||||
#include "RimProject.h"
|
#include "RimProject.h"
|
||||||
#include "RimSaturationPressurePlot.h"
|
#include "RimSaturationPressurePlot.h"
|
||||||
|
#include "RimWellLogTrack.h"
|
||||||
|
|
||||||
#include "RiuPlotMainWindowTools.h"
|
#include "RiuPlotMainWindowTools.h"
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
@ -149,7 +150,11 @@ std::vector<RimPlot*> RicNewMultiPlotFeature::selectedPlots()
|
|||||||
for ( caf::PdmUiItem* uiItem : uiItems )
|
for ( caf::PdmUiItem* uiItem : uiItems )
|
||||||
{
|
{
|
||||||
RimPlot* plotInterface = dynamic_cast<RimPlot*>( uiItem );
|
RimPlot* plotInterface = dynamic_cast<RimPlot*>( uiItem );
|
||||||
if ( plotInterface )
|
// Special case for all well log tracks which currently need to be in Well Log Plot for
|
||||||
|
// depth information and cannot be moved into multiplots.
|
||||||
|
// TODO: copy depth information into well log tracks to allow their use separately.
|
||||||
|
RimWellLogTrack* wellLogTrack = dynamic_cast<RimWellLogTrack*>( plotInterface );
|
||||||
|
if ( plotInterface && !wellLogTrack )
|
||||||
{
|
{
|
||||||
plots.push_back( plotInterface );
|
plots.push_back( plotInterface );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user