#6553 Disallow adding of well log tracks into multi plots

This commit is contained in:
Gaute Lindkvist 2020-09-23 09:15:06 +02:00
parent bbdda4215b
commit 7fbdbafda6

View File

@ -25,6 +25,7 @@
#include "RimPlot.h"
#include "RimProject.h"
#include "RimSaturationPressurePlot.h"
#include "RimWellLogTrack.h"
#include "RiuPlotMainWindowTools.h"
#include <QAction>
@ -149,7 +150,11 @@ std::vector<RimPlot*> RicNewMultiPlotFeature::selectedPlots()
for ( caf::PdmUiItem* uiItem : uiItems )
{
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 );
}