Fix crash when exporting surface. (#7705)

This commit is contained in:
jonjenssen 2021-05-20 10:28:53 +02:00 committed by GitHub
parent af22b7f707
commit 242e23a7c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ bool RifSurfaceExporter::writeGocadTSurfFile( const QString& fil
QTextStream out( &exportFile ); QTextStream out( &exportFile );
QString headerForExport = headerForExport = "surface"; QString headerForExport = "surface";
if ( !headerText.isEmpty() ) headerForExport = headerText; if ( !headerText.isEmpty() ) headerForExport = headerText;
out << "GOCAD TSurf 1 \n"; out << "GOCAD TSurf 1 \n";