forked from qt-creator/qt-creator
Editor: Fix compiling of editor overlay.
Introduced by 0532c94758 .
Change-Id: Ia10c09a44012649ffab4fa35d0f1ac20d2233474
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user