Commit 182bd0b3 authored by David Schulz's avatar David Schulz Committed by hjk

Editor: Fix compiling of editor overlay.

Introduced by 0532c947 .

Change-Id: Ia10c09a44012649ffab4fa35d0f1ac20d2233474
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 0532c947
......@@ -93,9 +93,9 @@ void TextEditorOverlay::addOverlaySelection(int begin, int end,
selection.m_bg = bg;
selection.m_cursor_begin = QTextCursor(document);
selection.m_cursor_begin.setPos(begin);
selection.m_cursor_begin.setPosition(begin);
selection.m_cursor_end = QTextCursor(document);
selection.m_cursor_end.setPos(end);
selection.m_cursor_end.setPosition(end);
if (overlaySelectionFlags & ExpandBegin)
selection.m_cursor_begin.setKeepPositionOnInsert(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment