Exported coordinate fix (#11283)

Make sure exported well path coordinates use local coord system when needed.
This commit is contained in:
jonjenssen
2024-03-12 16:57:16 +01:00
committed by GitHub
parent f411b5fabe
commit cb1e062e99
6 changed files with 27 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ bool JsonWriter::encodeFile( QString filePath, QMap<QString, QVariant> map )
{
QFile file;
file.setFileName( filePath );
if ( file.open( QIODevice::ReadWrite | QIODevice::Text ) )
if ( file.open( QIODevice::ReadWrite | QIODevice::Text | QIODevice::Truncate ) )
{
QString content = Json::encode( map, true );
QTextStream out( &file );