diff --git a/src/chatdocumenthandler.cpp b/src/chatdocumenthandler.cpp index 8d489984a..c9a64533a 100644 --- a/src/chatdocumenthandler.cpp +++ b/src/chatdocumenthandler.cpp @@ -16,6 +16,8 @@ ChatDocumentHandler::ChatDocumentHandler(QObject *parent) : QObject(parent) , m_document(nullptr) , m_cursorPosition(-1) + , m_selectionStart(-1) + , m_selectionEnd(-1) { } diff --git a/src/spellcheckhighlighter.cpp b/src/spellcheckhighlighter.cpp index ea5c9e398..32ef4a7e1 100644 --- a/src/spellcheckhighlighter.cpp +++ b/src/spellcheckhighlighter.cpp @@ -84,7 +84,7 @@ SpellcheckHighlighter::SpellcheckHighlighter(QObject *parent) new Sonnet::GuessLanguage() } #endif -, m_document(nullptr), m_cursorPosition(-1) +, m_document(nullptr), m_cursorPosition(-1), m_selectionStart(-1), m_selectionEnd(-1) { // Danger red from our color scheme mErrorFormat.setForeground(QColor(0xED, 0x15, 0x15));