Fix problem with black background in snapshot export

This commit is contained in:
Gaute Lindkvist
2020-01-08 14:52:28 +01:00
parent 3fc7378b8f
commit a58d854030
11 changed files with 44 additions and 27 deletions

View File

@@ -81,11 +81,12 @@ RicfCommandResponse RicfExportWellLogPlotData::execute()
{
std::vector<RimWellLogPlot*> plots;
RiaApplication::instance()->project()->descendantsIncludingThisOfType( plots );
RicfExportWellLogPlotDataResult* result = new RicfExportWellLogPlotDataResult;
for ( RimWellLogPlot* plot : plots )
{
if ( plot->id() == m_viewId() )
{
RicfExportWellLogPlotDataResult* result = new RicfExportWellLogPlotDataResult;
if ( m_format() == ASCII )
{
QString validFileName =
@@ -106,16 +107,22 @@ RicfCommandResponse RicfExportWellLogPlotData::execute()
plot,
m_exportTvdRkb(),
m_capitalizeFileNames(),
true,
m_resampleInterval() );
result->exportedFiles.v() = exportedFiles;
}
response.setResult( result );
if ( result->exportedFiles().empty() )
{
errorMessages << "No files exported";
if ( exportedFiles.empty() )
{
errorMessages << QString( "No files exported for '%1'" ).arg( plot->description() );
}
else
{
result->exportedFiles.v().insert( result->exportedFiles.v().end(),
exportedFiles.begin(),
exportedFiles.end() );
}
}
}
}
response.setResult( result );
}
else
{