[ci-force] fix

This commit is contained in:
Alexander Wang 2023-06-05 11:46:38 -07:00
parent 69475c7896
commit b5f8a0223e
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -1036,7 +1036,7 @@ func (obj *Object) GetDefaultSize(mtexts []*d2target.MText, ruler *textmeasure.R
if l := len(c.Constraint); l > 0 {
constraintDims := GetTextDimensions(mtexts, ruler, ctexts[2], fontFamily)
if typeDims == nil {
if constraintDims == nil {
return nil, fmt.Errorf("dimensions for sql_table constraint %#v not found", ctexts[2].Text)
}
maxConstraintWidth = go2.Max(maxConstraintWidth, constraintDims.Width)