[ci-force] fix
This commit is contained in:
parent
69475c7896
commit
b5f8a0223e
1 changed files with 1 additions and 1 deletions
|
|
@ -1036,7 +1036,7 @@ func (obj *Object) GetDefaultSize(mtexts []*d2target.MText, ruler *textmeasure.R
|
||||||
|
|
||||||
if l := len(c.Constraint); l > 0 {
|
if l := len(c.Constraint); l > 0 {
|
||||||
constraintDims := GetTextDimensions(mtexts, ruler, ctexts[2], fontFamily)
|
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)
|
return nil, fmt.Errorf("dimensions for sql_table constraint %#v not found", ctexts[2].Text)
|
||||||
}
|
}
|
||||||
maxConstraintWidth = go2.Max(maxConstraintWidth, constraintDims.Width)
|
maxConstraintWidth = go2.Max(maxConstraintWidth, constraintDims.Width)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue