Skip to content

Commit 20340c7

Browse files
committed
[__main__] add validation that at least one axis value is defined
Include new validation check that at least one axis value was defined, else user is requesting a design space that is identical to the input font with the latest change to the partial instantiation / sub-spacing approach (i.e. if user does not enter value, the axis remains variable)
1 parent 776a74b commit 20340c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/slice/__main__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,12 @@ def btn_clicked_slice(self):
548548
self.statusbar.update()
549549
# must keep this return statement to abort execution!
550550
return
551+
elif not self.fvar_table_model.instance_data_validates():
552+
SliceErrorDialog(
553+
"You requested the same design space that is supported in the "
554+
"font path that you are processing. Please define at least one "
555+
"axis value."
556+
)
551557
else:
552558
# validation: confirm that the user did not edit the
553559
# file path in the text edit field without initiation

0 commit comments

Comments
 (0)