mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 10:20:07 +00:00
Make ShaderViewer::ensureLineScrolled more conservative
This commit is contained in:
1 file changed
+1
-1
@@ -2471,7 +2471,7 @@ void ShaderViewer::ensureLineScrolled(ScintillaEdit *s, int line)
|
||||
int firstLine = s->firstVisibleLine();
|
||||
int linesVisible = s->linesOnScreen();
|
||||
|
||||
if(s->isVisible() && (line < firstLine || line > (firstLine + linesVisible)))
|
||||
if(s->isVisible() && (line < firstLine || line > (firstLine + linesVisible - 1)))
|
||||
s->setFirstVisibleLine(qMax(0, line - linesVisible / 2));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user