mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
export-html needs to actually calculate the statistics
Otherwise they will always be empty. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ea6f6b959e
commit
09d6913161
1 changed files with 8 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "subsurfacestartup.h"
|
||||
#include "divelogexportlogic.h"
|
||||
#include "windowtitleupdate.h"
|
||||
#include "statistics.h"
|
||||
|
||||
QTranslator *qtTranslator, *ssrfTranslator;
|
||||
|
||||
|
@ -54,6 +55,13 @@ int main(int argc, char **argv)
|
|||
prefs.unit_system = informational_prefs.unit_system;
|
||||
prefs.units = informational_prefs.units;
|
||||
|
||||
// populate the statistics
|
||||
struct dive *d = get_dive(0);
|
||||
struct dive *pd;
|
||||
if (d) {
|
||||
process_all_dives(d, &pd);
|
||||
}
|
||||
|
||||
// now set up the export settings to create the HTML export
|
||||
struct htmlExportSetting hes;
|
||||
hes.themeFile = "sand.css";
|
||||
|
|
Loading…
Reference in a new issue