mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Minor cleanup.
This commit is contained in:
@@ -98,12 +98,10 @@ wxFont Font::toWxFont(double scale) const {
|
||||
font = wxFont(size_i, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, weight_i, underline(), italic_name());
|
||||
} else {
|
||||
String familyName = name();
|
||||
|
||||
if(familyName.EndsWith(BOLD_STRING)) {
|
||||
familyName = familyName.Left(familyName.length() - BOLD_STRING.length());
|
||||
weight_i = wxFONTWEIGHT_BOLD;
|
||||
}
|
||||
|
||||
font = wxFont(size_i, wxFONTFAMILY_DEFAULT, style_i, weight_i, underline(), familyName);
|
||||
}
|
||||
// fix size
|
||||
|
||||
Reference in New Issue
Block a user