From f8547c50377e3874c888899e99946ee1fb576587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= Date: Wed, 2 Jun 2010 11:20:56 +0200 Subject: Only do line selection in the gutter when the line numbers are visible While 2641496a997 removed the marks check entirely, a fix for the same issue made on the master branch (1263babfc6c96) changed it to check whether the line numbers are visible. This is more correct. Reviewed-by: mae (cherry picked from commit 502e86b7373c24411e79cb684eb454530f45f5b5) --- 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 d8ef9b1fa7..9f53a888f9 100644 --- a/src/plugins/texteditor/basetexteditor.cpp +++ b/src/plugins/texteditor/basetexteditor.cpp @@ -3554,7 +3554,7 @@ void BaseTextEditor::extraAreaMouseEvent(QMouseEvent *e) toggleBlockVisible(c); d->moveCursorVisible(false); } - } else if (e->pos().x() > markWidth) { + } else if (d->m_lineNumbersVisible && e->pos().x() > markWidth) { QTextCursor selection = cursor; selection.setVisualNavigation(true); d->extraAreaSelectionAnchorBlockNumber = selection.blockNumber(); -- cgit v1.2.3