diff options
author | Thomas White <taw@physics.org> | 2024-05-06 17:22:39 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-05-06 17:22:39 +0200 |
commit | 741ca70b8fae1ca560fa84b7a533efbd7f2ba1de (patch) | |
tree | c3c980789ad150b94dbd56755daa2ffa84848806 /src/im-asapo.h | |
parent | c7a602f5d1e1109e341f25bad264a11f2beec9b3 (diff) |
data_template_write_to_fh: Don't try to write coffset at top level
Previously, there was a bad bug here. We would still try to write a
top-level coffset even if panels have moved such that the coffset is no
longer a single value.
One possibility is to unset panel->cnz_offset_default when moving a
panel. This works, but we have to do it on every translation, or accept
a floating-point comparison with zero and associated non-determinism.
It's very likely that if we move one panel, we'll be moving all panels,
even if only by a small amount. So, a more stable way seems to just
write separate coffset values all the time. The coffset values aren't
really meant to be used at the top level anyway (that's what clen is
for!), so this fits pretty well.
Diffstat (limited to 'src/im-asapo.h')
0 files changed, 0 insertions, 0 deletions