Don't crash the app_server if the font couldn't be found. Fixes bug #4149,
though it still has to be investigated why the font style isn't found. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31901 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e542ec0575
commit
337b8534e0
@ -164,7 +164,7 @@ DesktopSettingsPrivate::_Load()
|
||||
&& settings.FindString("fixed style", &style) == B_OK
|
||||
&& settings.FindFloat("fixed size", &size) == B_OK) {
|
||||
FontStyle* fontStyle = gFontManager->GetStyle(family, style);
|
||||
if (fontStyle->IsFixedWidth())
|
||||
if (fontStyle != NULL && fontStyle->IsFixedWidth())
|
||||
fFixedFont.SetStyle(fontStyle);
|
||||
fFixedFont.SetSize(size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user