aboutsummaryrefslogtreecommitdiffstats
path: root/statistics.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-03-25 23:34:11 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-03-27 10:58:22 -0700
commit47c0ddbf307f5366ad11498acee63395c21c62d1 (patch)
tree865c58823feb39f0f08afca3e223933df6ca38da /statistics.h
parentb3f6a4f9943432776216f7dd90a2e07fc9dceff1 (diff)
downloadsubsurface-47c0ddbf307f5366ad11498acee63395c21c62d1.tar.gz
Print: enable printing with the new profile
Some weird things happen if we use a local instance of the ProfileWidget2 class in printProfileDives(). Once we exit the printing dialog the profile crashes, which could hint of singleton issues. Instead we are going to use the already active instance of the class which we can retrieve from MainWindow. This should also be faster because the class is pretty heavy. In such a case the cleanup at the end of printProfileDives() is still relevant (removed in ac9a23ef3b69). First we resize the widget for printing purposes and then resize it back to the original values and re-plot the current selected dive in the dive list. Fixes #477, #478 Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'statistics.h')
0 files changed, 0 insertions, 0 deletions