From 6d9d49aafb358293326f4edca393c7f2dfc9602a Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sat, 28 Jan 2012 11:26:57 -0500 Subject: [PATCH] Correct issue of triple clicking and scrolling up. Fixes selecting text by triple click and scrolling up causes only the visible contents to be selected. Thanks to Shlomi Fish (shlomif@iglu.org.il) for research and patch. BUG: 256353 REVIEW: 103724 FIXED-IN: 4.9 --- src/ScreenWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ScreenWindow.cpp b/src/ScreenWindow.cpp index 5249993a9..e9fa8a0de 100644 --- a/src/ScreenWindow.cpp +++ b/src/ScreenWindow.cpp @@ -128,7 +128,7 @@ void ScreenWindow::getSelectionEnd(int& column , int& line) } void ScreenWindow::setSelectionStart(int column , int line , bool columnMode) { - _screen->setSelectionStart(column , qMin(line + currentLine(), endWindowLine()) , columnMode); + _screen->setSelectionStart(column , line + currentLine() , columnMode); _bufferNeedsUpdate = true; emit selectionChanged(); @@ -136,7 +136,7 @@ void ScreenWindow::setSelectionStart(int column , int line , bool columnMode) void ScreenWindow::setSelectionEnd(int column , int line) { - _screen->setSelectionEnd(column , qMin(line + currentLine(), endWindowLine())); + _screen->setSelectionEnd(column , line + currentLine()); _bufferNeedsUpdate = true; emit selectionChanged();