mirror of https://github.com/OpenTTD/OpenTTD.git
The scrollbar is set up before the true monospace is loaded, so reinitialise the window after loading.
This commit is contained in:
parent
75015cdad2
commit
83d63464db
|
@ -850,6 +850,9 @@ void TextfileWindow::LoadText(std::string_view buf)
|
||||||
this->AfterLoadText();
|
this->AfterLoadText();
|
||||||
|
|
||||||
CheckForMissingGlyphs(true, this);
|
CheckForMissingGlyphs(true, this);
|
||||||
|
|
||||||
|
/* The font may have changed when searching for glyphs, so ensure widget sizes are updated just in case. */
|
||||||
|
this->ReInit();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue