ignore empty text
This commit is contained in:
parent
dbc09d1175
commit
e2c8b19af9
1 changed files with 3 additions and 0 deletions
|
|
@ -980,6 +980,9 @@ func (e *Edge) initIndex() {
|
|||
}
|
||||
|
||||
func findMeasured(mtexts []*d2target.MText, t1 *d2target.MText) *d2target.TextDimensions {
|
||||
if strings.TrimSpace(t1.Text) == "" {
|
||||
return d2target.NewTextDimensions(0, 0)
|
||||
}
|
||||
for i, t2 := range mtexts {
|
||||
if t1.Text != t2.Text {
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue