()
| 205 | } |
| 206 | |
| 207 | func (c *column) copy() *column { |
| 208 | cpy := &column{ |
| 209 | name: c.name, |
| 210 | typ: c.typ, |
| 211 | hidden: c.hidden, |
| 212 | formulae: c.formulae, |
| 213 | serie: c.serie.Copy(), |
| 214 | } |
| 215 | if len(cpy.formulae) > 0 { |
| 216 | if parsed, err := expr.Parse(cpy.formulae); err == nil { |
| 217 | cpy.expr = parsed |
| 218 | } |
| 219 | } |
| 220 | return cpy |
| 221 | } |