Fix regression introduced when fixing fonts

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5183 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-04-07 17:14:03 +00:00
parent 075e22b8aa
commit 5489920441

View File

@ -54,7 +54,7 @@ void DisplayText::_insertText(const QString text, const QString bg)
auto cursor = textCursor (); auto cursor = textCursor ();
cursor.movePosition (QTextCursor::End); cursor.movePosition (QTextCursor::End);
auto pos = cursor.position (); auto pos = cursor.position ();
insertHtml (s); cursor.insertHtml (s);
cursor.setPosition (pos, QTextCursor::MoveAnchor); cursor.setPosition (pos, QTextCursor::MoveAnchor);
cursor.movePosition (QTextCursor::End, QTextCursor::KeepAnchor); cursor.movePosition (QTextCursor::End, QTextCursor::KeepAnchor);
cursor.mergeCharFormat (m_charFormat); cursor.mergeCharFormat (m_charFormat);