Replace PS character. Fixes #37803

This commit is contained in:
Blottiere Paul 2020-09-16 20:38:19 +02:00 committed by Nyall Dawson
parent 5fc05e2d11
commit 1bd78908ee

View File

@ -110,6 +110,8 @@ void QgsDecorationTitleDialog::mInsertExpressionButton_clicked()
if ( selText.startsWith( QLatin1String( "[%" ) ) && selText.endsWith( QLatin1String( "%]" ) ) )
selText = selText.mid( 2, selText.size() - 4 );
selText = selText.replace( QChar( 0x2029 ), QChar( '\n' ) );
QgsExpressionBuilderDialog exprDlg( nullptr, selText, this, QStringLiteral( "generic" ), QgisApp::instance()->mapCanvas()->mapSettings().expressionContext() );
exprDlg.setWindowTitle( QObject::tr( "Insert Expression" ) );