diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-24 19:13:16 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-10 15:57:39 -0800 |
commit | e61466e178e9062a7202f24f609baa12d21df5ea (patch) | |
tree | 0c043a75b65318596a3f31ef66f3ac7471030499 /profile-widget/profilewidget2.cpp | |
parent | 9c0b6436fd7d948e3b2ad191882ac36889c82179 (diff) | |
download | subsurface-e61466e178e9062a7202f24f609baa12d21df5ea.tar.gz |
profile: turn static into member variable
When the settings change, the depth axis is redrawn
to reflect metric/imperial units. To check whether the
units changed, the old length unit is saved in a static
variable. This makes no sense and allows for only one
depth axis. Make this a normal member variable that is
initialized in the constructor.
Also remove the settingsChanged() call in the constructor,
since this is a no-op (the depth unit is unchanged).
Contains a whitespace fix.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
0 files changed, 0 insertions, 0 deletions