Skip to content
Permalink
Browse files

Fixes #36191 : remove qrichtext meta from expression description html

  • Loading branch information
troopa81 authored and nyalldawson committed May 12, 2020
1 parent 1538420 commit ee9b696aa4f319669082394ba484dfb0d2a2850b
Showing with 8 additions and 1 deletion.
  1. +7 −0 src/gui/qgsexpressionstoredialog.cpp
  2. +1 −1 src/gui/qgsexpressionstoredialog.h
@@ -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() );
}
@@ -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:

0 comments on commit ee9b696

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