Skip to content
Permalink
Browse files

Replace PS character. Fixes #37803

(cherry picked from commit 1bd7890)
  • Loading branch information
pblottiere authored and nyalldawson committed Oct 23, 2020
1 parent 3430bbd commit f48e1813060e1ebadb7c61e290e0555cc4d4601a
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/decorations/qgsdecorationtitledialog.cpp
@@ -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" ) );

0 comments on commit f48e181

Please sign in to comment.
You can’t perform that action at this time.