Skip to content

Commit

Permalink
Fixes #36191 : remove qrichtext meta from expression description html
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 authored and nyalldawson committed May 12, 2020
1 parent 1538420 commit ee9b696
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/gui/qgsexpressionstoredialog.cpp
Expand Up @@ -59,3 +59,10 @@ QgsExpressionStoreDialog::QgsExpressionStoreDialog( const QString &label, const
mLabel->setText( labelFixed );
}

QString QgsExpressionStoreDialog::helpText()
{
// remove meta qrichtext instruction from html. It fails rendering
// when mixing with other html content
// see issue https://github.com/qgis/QGIS/issues/36191
return mHelpText->toHtml().replace( "<meta name=\"qrichtext\" content=\"1\" />", QString() );
}
2 changes: 1 addition & 1 deletion src/gui/qgsexpressionstoredialog.h
Expand Up @@ -55,7 +55,7 @@ class GUI_EXPORT QgsExpressionStoreDialog : public QDialog, private Ui::QgsExpre
/**
* Returns the help text
*/
QString helpText() { return mHelpText->toHtml(); }
QString helpText();

private:

Expand Down

0 comments on commit ee9b696

Please sign in to comment.