diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2021-03-21 21:40:50 +0100 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2021-03-25 19:38:00 +0000 |
commit | 60a275ce6245c0d3ce71b2d63bbeefd879dfef9c (patch) | |
tree | 3980a9cc66d8cf66f58a00a13680da9e4dbb3a27 | |
parent | 1dd52d39afb7a8a94d464dc8a997eaf0d912f25d (diff) |
CompileOutputWindow: Fix creation of task positions
When jumping from the issues pane to the compile output,
the selected text was always starting and ending one line
earlier than expected.
Probably broken by 1c6e4fbd3.
Fixes: QTCREATORBUG-25497
Change-Id: Ia5b796f27faa91e45b10b945dbf6261f1dbce036
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | src/plugins/projectexplorer/compileoutputwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/compileoutputwindow.cpp b/src/plugins/projectexplorer/compileoutputwindow.cpp index 2f322a660a..74d6e2f485 100644 --- a/src/plugins/projectexplorer/compileoutputwindow.cpp +++ b/src/plugins/projectexplorer/compileoutputwindow.cpp @@ -247,7 +247,7 @@ void CompileOutputWindow::registerPositionOf(const Task &task, int linkedOutputL if (linkedOutputLines <= 0) return; - const int blocknumber = m_outputWindow->document()->blockCount() - offset - 1; + const int blocknumber = m_outputWindow->document()->blockCount() - offset; const int firstLine = blocknumber - linkedOutputLines - skipLines; const int lastLine = firstLine + linkedOutputLines - 1; |