fixed a bug with transformations applying to dashed lines
This commit is contained in:
parent
deaa8f87b6
commit
ef97c9be5c
1 changed files with 3 additions and 3 deletions
6
paths.go
6
paths.go
|
@ -421,11 +421,11 @@ func (cv *Canvas) applyLineDash(path []pathPoint) []pathPoint {
|
|||
}
|
||||
|
||||
if draw {
|
||||
path2[len(path2)-1].next = cv.tf(p)
|
||||
path2[len(path2)-1].next = p
|
||||
path2[len(path2)-1].flags |= pathAttach
|
||||
path2 = append(path2, pathPoint{pos: p, tf: cv.tf(p)})
|
||||
path2 = append(path2, pathPoint{pos: p, tf: p})
|
||||
} else {
|
||||
path2 = append(path2, pathPoint{pos: p, tf: cv.tf(p), flags: pathMove})
|
||||
path2 = append(path2, pathPoint{pos: p, tf: p, flags: pathMove})
|
||||
}
|
||||
|
||||
lp = p
|
||||
|
|
Loading…
Reference in a new issue