forked from qt-creator/qt-creator
Fixed line select in gutter when text marks are not visible
The ProjectFilesEditor used for editing the generic project's files does not show text marks, which broke the line select in the gutter. Task-number: QTCREATORBUG-1238 Reviewed-by: mae
This commit is contained in:
@@ -3557,7 +3557,7 @@ void BaseTextEditor::extraAreaMouseEvent(QMouseEvent *e)
|
||||
toggleBlockVisible(c);
|
||||
d->moveCursorVisible(false);
|
||||
}
|
||||
} else if (d->m_marksVisible && e->pos().x() > markWidth) {
|
||||
} else if (e->pos().x() > markWidth) {
|
||||
QTextCursor selection = cursor;
|
||||
selection.setVisualNavigation(true);
|
||||
d->extraAreaSelectionAnchorBlockNumber = selection.blockNumber();
|
||||
|
||||
Reference in New Issue
Block a user