mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-01 06:11:35 +00:00
Fixed Leading of the font can be set to negative value
This commit is contained in:
@@ -677,7 +677,7 @@ public class FontPanel extends JPanel {
|
||||
int ascent = Integer.parseInt(fontAscentTextField.getText());
|
||||
int descent = Integer.parseInt(fontDescentTextField.getText());
|
||||
int leading = Integer.parseInt(fontLeadingTextField.getText());
|
||||
if (ascent < 0 || descent < 0 || leading < 0) {
|
||||
if (ascent < 0 || descent < 0) {
|
||||
return;
|
||||
}
|
||||
fontTag.setAscent(ascent);
|
||||
|
||||
Reference in New Issue
Block a user