mirror of
https://github.com/fadden/6502bench.git
synced 2025-08-13 15:25:45 +00:00
Fix crash in font picker
It's possible to have multiple fonts with the same font family. Don't use the list add method that throws an exception when it finds a duplicate key.
This commit is contained in:
@@ -90,7 +90,7 @@ namespace SourceGen.WpfGui {
|
||||
continue;
|
||||
}
|
||||
|
||||
tmpList.Add(familyName, typ.FontFamily);
|
||||
tmpList[familyName] = typ.FontFamily;
|
||||
|
||||
if (familyName.Equals(initialFamily)) {
|
||||
SelectedFamily = typ.FontFamily;
|
||||
|
Reference in New Issue
Block a user