mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix problem with black background in snapshot export
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user