aboutsummaryrefslogtreecommitdiffstats
path: root/stats/pieseries.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-13 21:15:11 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2021-01-20 08:47:18 +0100
commitb1c0d424081530161c1637a1a24ff07a4b021097 (patch)
tree6db7322173e4ffd183534cc409e61ee6ed0ea3c8 /stats/pieseries.cpp
parente1c0cace95d6ed19dff37a524c7f4b2288d258d7 (diff)
downloadsubsurface-b1c0d424081530161c1637a1a24ff07a4b021097.tar.gz
statistics: remember position of legend when resizing
The position of the legend was reset when resizing. This was OK as long as the legend wasn't movable. To avoid resetting the position, store the center position of the legend relatively to the size of the canvas. On resize restore the center to the same relative size. To avoid code duplication, move the sanitizing of the coordinates from the StatsView to the Legend. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'stats/pieseries.cpp')
0 files changed, 0 insertions, 0 deletions