Skip to content

Commit

Permalink
Fix rich text editor loses html formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 30, 2021
1 parent 54d50c6 commit a762302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsrichtexteditor.cpp
Expand Up @@ -237,7 +237,7 @@ QString QgsRichTextEditor::toHtml() const
switch ( mStackedWidget->currentIndex() )
{
case 0:
return mTextEdit->toPlainText();
return mTextEdit->toHtml();

case 1:
return mSourceEdit->text();
Expand Down

0 comments on commit a762302

Please sign in to comment.