diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-27 21:12:24 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2020-05-01 12:36:28 +0200 |
commit | ffc3e598faa5d986d78e9a275c48193a3a835cfe (patch) | |
tree | 33430b39d93cf0f96cdb6eca09c7d12ab182e648 /ReleaseNotes | |
parent | b949bad026c8bab7611998fb0fcf9f6008dbd7e9 (diff) | |
download | subsurface-ffc3e598faa5d986d78e9a275c48193a3a835cfe.tar.gz |
core: create fake cylinder at end of cylinder table (hack!)
When we had fixed-sized cylinder arrays, the planner used the last
empty cylinder for "surface air". This was not recognized by the UI
as a separate cylinder, because "empty cylinder" was the sentinel for
the end of the table. The conversion to dynamically sized cylinder
tables broke this code: everytime the surface segment is changed,
a new dummy cylinder is added, which is visible in the UI.
As a very temporary stop-gap fix, emulate the old code by creating
a cylinder and then setting the end-of-table to before that cylinder.
This means that we have to loosen the out-of-bound checks.
That's all very scary and should be removed as soon as possible.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'ReleaseNotes')
0 files changed, 0 insertions, 0 deletions