Skip to content

Commit

Permalink
Fixes qgis#36191 : remove qrichtext meta from expression description …
Browse files Browse the repository at this point in the history
…html
  • Loading branch information
troopa81 committed May 7, 2020
1 parent c22c73d commit 167b9e7
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 167b9e7

Please sign in to comment.