Commit 16adcc48 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Wrong line is highlighted when showing source of task

 * Fix off-by-one error when showing compile output of a task
parent 3652b9db
......@@ -174,7 +174,7 @@ void CompileOutputWindow::registerPositionOf(const Task &task)
int blocknumber = m_outputWindow->blockCount();
if (blocknumber > MAX_LINECOUNT)
m_taskPositions.insert(task.taskId, blocknumber - 1);
m_taskPositions.insert(task.taskId, blocknumber);
bool CompileOutputWindow::knowsPositionOf(const Task &task)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment