mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-04 22:01:07 +00:00
Fix 0-based line numbers in shader viewer find results
* Scintilla lines are numbered from 0 but for user display we want to be 1-based.
This commit is contained in:
@@ -5439,7 +5439,7 @@ void ShaderViewer::performFindAll()
|
||||
|
||||
QString lineText = QString::fromUtf8(s->textRange(lineStart, lineEnd));
|
||||
|
||||
results += QFormatStr(" %1(%2): ").arg(s->windowTitle()).arg(line, 4);
|
||||
results += QFormatStr(" %1(%2): ").arg(s->windowTitle()).arg(line + 1, 4);
|
||||
int startPos = results.length();
|
||||
|
||||
results += lineText;
|
||||
|
||||
Reference in New Issue
Block a user