Clear dateStrWidth on clearFonts

pull/1024/head
Levin Li 2021-05-27 15:56:06 +08:00
parent fd2ba19d79
commit 009e09df63
1 changed files with 2 additions and 0 deletions

View File

@ -4257,6 +4257,8 @@ void CelestiaCore::setRendererFont(const fs::path& fontPath, int collectionIndex
void CelestiaCore::clearFonts()
{
dateStrWidth = 0;
if (overlay)
overlay->setFont(nullptr);
if (console)