BXLYT : Fix text panes with no fonts referenced

This commit is contained in:
KillzXGaming 2020-04-17 17:31:53 -04:00
parent d5f2d60bfa
commit 30337a2fcf

View file

@ -48,8 +48,11 @@ namespace LayoutBXLYT
fontFileCB.Items.Add(font);
}
if (fontFileCB.Items.Contains(pane.FontName))
fontFileCB.SelectedItem = pane.FontName;
if (pane.FontName != null)
{
if (fontFileCB.Items.Contains(pane.FontName))
fontFileCB.SelectedItem = pane.FontName;
}
textBoxTB.Bind(pane, "TextBoxName");