Skip to content

rowConstructor Static() modifies original slice #58

@funvit

Description

@funvit
func (ctr *rowConstructor) Static(width ...int) {
	for i := range width {
		width[i] = ctr.win.ctx.scale(width[i])
	}
...

If called with slice - this slice is modified.

This leads to bug - values scales on each call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions