From 2641496a997ca3ab22cf29bd6ac0ef36f12a046e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Tue, 1 Jun 2010 12:39:08 +0200 Subject: [PATCH] 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 --- src/plugins/texteditor/basetexteditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/basetexteditor.cpp b/src/plugins/texteditor/basetexteditor.cpp index 5da246e6df5..550f2fe9508 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -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();