[GUI] Fix 'First and last points must be endpoints' exception (#4029)

This commit is contained in:
rorp 2022-01-31 12:55:28 -08:00 committed by GitHub
parent 883b01006d
commit 546e030dde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -634,9 +634,9 @@ object CreateDLCOfferDialog {
val x = numberFormatter.parse(xTF.text.value).longValue()
val y = numberFormatter.parse(yTF.text.value).longValue()
val point = if (checkBox.selected.value) {
PiecewisePolynomialMidpoint(x, y)
} else {
PiecewisePolynomialEndpoint(x, y)
} else {
PiecewisePolynomialMidpoint(x, y)
}
Some(point)
} else {