Skip to content

Commit 0439b71

Browse files
committed
Исправлен параметр в forms::newLabel
1 parent 4098932 commit 0439b71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/annimon/ownlang/modules/forms/Components.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public static Value newButton(Value... args) {
4040
public static Value newLabel(Value... args) {
4141
Arguments.checkRange(0, 2, args.length);
4242
String text = (args.length >= 1) ? args[0].asString() : "";
43-
int align = (args.length == 2) ? args[0].asInt() : SwingConstants.LEADING;
43+
int align = (args.length == 2) ? args[1].asInt() : SwingConstants.LEADING;
4444
return new JLabelValue(new JLabel(text, align));
4545
}
4646

0 commit comments

Comments
 (0)