diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-20 23:13:54 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-21 13:42:14 -0800 |
commit | 54ff31f5c19f4a6a7408a66e2ad33678896de529 (patch) | |
tree | 30695880e48b137635c583392d3740798ccb4aba /.DEREK.yml | |
parent | 913bed19bbbd43c5934b6d26d94e3f260a1a76d3 (diff) | |
download | subsurface-54ff31f5c19f4a6a7408a66e2ad33678896de529.tar.gz |
statistics: do resizing in UI thread, not render thread
The updatePaintNode() function, which is run on the render
thread detected a geometry change and initiated recalculation
of the chart layout.
This means that plotAreaChanged() was called in two different
thread contexts, which is questionable. Instead, hook into
the geometryChanged() function and recalculate the chart items
there.
This fixes a rendering bug, because the old code would first
delete unneeded items and then rerender the chart. Thus, old
grid and tick items were still visible.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to '.DEREK.yml')
0 files changed, 0 insertions, 0 deletions