We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I bumped into this problem:
func (d *Drawing) LwPolyline(closed bool, vertices ... []float64) (*entity.LwPolyline, error) { size := len(vertices) l := entity.NewLwPolyline(size) for i := 0; i < size; i++ { l.Vertices[i] = vertices[i] } if closed { l.Close() } l.SetLayer(d.CurrentLayer) d.AddEntity(l) return l, nil }
shouldn't this be:
func (d *Drawing) LwPolyline(closed bool, vertices [][]float64) (*entity.LwPolyline, error) {
Where the spread operator is replaced with a [] so the vertices are correct. I tested this change and it works fine.
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I bumped into this problem:
shouldn't this be:
func (d *Drawing) LwPolyline(closed bool, vertices [][]float64) (*entity.LwPolyline, error) {
Where the spread operator is replaced with a [] so the vertices are correct.
I tested this change and it works fine.
Thanks
The text was updated successfully, but these errors were encountered: