bug fix
This commit is contained in:
parent
e6644b7b24
commit
806ad20891
@ -179,10 +179,10 @@ func (dc *Context) MoveTo(x, y float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (dc *Context) LineTo(x, y float64) {
|
func (dc *Context) LineTo(x, y float64) {
|
||||||
x, y = dc.TransformPoint(x, y)
|
|
||||||
if len(dc.strokePath) == 0 {
|
if len(dc.strokePath) == 0 {
|
||||||
dc.MoveTo(x, y)
|
dc.MoveTo(x, y)
|
||||||
} else {
|
} else {
|
||||||
|
x, y = dc.TransformPoint(x, y)
|
||||||
p := fp(x, y)
|
p := fp(x, y)
|
||||||
dc.strokePath.Add1(p)
|
dc.strokePath.Add1(p)
|
||||||
dc.fillPath.Add1(p)
|
dc.fillPath.Add1(p)
|
||||||
|
Loading…
Reference in New Issue
Block a user