Merge pull request #250 from scatterflower/boldfix

Fix improper bolding behavior due to malformed string literal
This commit is contained in:
scatterflower 2020-08-16 11:00:03 -05:00 committed by GitHub
commit a31693323c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -984,7 +984,7 @@ void Courtroom::set_font(QWidget *widget, QString class_name,
} }
} }
bool bold = ao_app->get_design_element(p_identifier + "_bold", design_file, p_char) == bool bold = ao_app->get_design_element(p_identifier + "_bold", design_file, p_char) ==
1; // is the font bold or not? "1"; // is the font bold or not?
bool antialias = bool antialias =
ao_app->get_design_element(p_identifier + "_sharp", design_file, p_char) != ao_app->get_design_element(p_identifier + "_sharp", design_file, p_char) !=
"1"; // is the font anti-aliased or not? "1"; // is the font anti-aliased or not?