diff options
-rw-r--r-- | export-html.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/export-html.cpp b/export-html.cpp index 4311d5eb4..0c270c6fc 100644 --- a/export-html.cpp +++ b/export-html.cpp @@ -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"; |