Editor: Fix compiling of editor overlay.

Introduced by 0532c94758 .

Change-Id: Ia10c09a44012649ffab4fa35d0f1ac20d2233474
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
David Schulz
2016-02-02 09:47:03 +01:00
committed by hjk
parent 0532c94758
commit 182bd0b34e

View File

@@ -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);