forked from mia/Aegisub
Fix a crash when opening a new file when the grid is not scrolled to the top
This commit is contained in:
parent
ea43700531
commit
85a820918f
1 changed files with 1 additions and 0 deletions
|
@ -571,6 +571,7 @@ void BaseGrid::AdjustScrollbar() {
|
||||||
scrollBar->SetSize(clientSize.GetWidth() - scrollbarSize.GetWidth(), 0, scrollbarSize.GetWidth(), clientSize.GetHeight());
|
scrollBar->SetSize(clientSize.GetWidth() - scrollbarSize.GetWidth(), 0, scrollbarSize.GetWidth(), clientSize.GetHeight());
|
||||||
|
|
||||||
if (GetRows() <= 1) {
|
if (GetRows() <= 1) {
|
||||||
|
yPos = 0;
|
||||||
scrollBar->Enable(false);
|
scrollBar->Enable(false);
|
||||||
scrollBar->Thaw();
|
scrollBar->Thaw();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue