diff options
author | Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com> | 2010-06-02 11:20:56 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-06-07 13:37:53 +0200 |
commit | f8547c50377e3874c888899e99946ee1fb576587 (patch) | |
tree | f8c8bbfdc6831ebfc6406a715b643370d39d506d | |
parent | f92aa0dfbd23ffb101fc82e05fa8cd05c1fd7214 (diff) |
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)
-rw-r--r-- | src/plugins/texteditor/basetexteditor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |