Show Plot Data: Add special handling for well log plots

Well log plots do not derive from RimPlot, add special handling.
This commit is contained in:
Magne Sjaastad
2023-10-18 08:50:04 +02:00
parent 09d6df74bf
commit 5f0f483025
2 changed files with 23 additions and 3 deletions

View File

@@ -896,17 +896,17 @@ void RimDepthTrackPlot::setAvailableDepthTypes( const std::set<DepthTypeEnum>& d
//--------------------------------------------------------------------------------------------------
QString RimDepthTrackPlot::asciiDataForPlotExport() const
{
QString out = description() + "\n";
QString plotContentAsText;
for ( RimPlot* plot : plots() )
{
if ( plot->showWindow() )
{
out += plot->asciiDataForPlotExport();
plotContentAsText += plot->asciiDataForPlotExport();
}
}
return out;
return plotContentAsText;
}
//--------------------------------------------------------------------------------------------------