Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replace PS character. Fixes #37803
  • Loading branch information
pblottiere authored and nyalldawson committed Sep 16, 2020
1 parent 5fc05e2 commit 1bd7890
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/decorations/qgsdecorationtitledialog.cpp
Expand Up @@ -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" ) );
Expand Down

0 comments on commit 1bd7890

Please sign in to comment.