mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +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 "subsurfacestartup.h"
|
||||||
#include "divelogexportlogic.h"
|
#include "divelogexportlogic.h"
|
||||||
#include "windowtitleupdate.h"
|
#include "windowtitleupdate.h"
|
||||||
|
#include "statistics.h"
|
||||||
|
|
||||||
QTranslator *qtTranslator, *ssrfTranslator;
|
QTranslator *qtTranslator, *ssrfTranslator;
|
||||||
|
|
||||||
|
@ -54,6 +55,13 @@ int main(int argc, char **argv)
|
||||||
prefs.unit_system = informational_prefs.unit_system;
|
prefs.unit_system = informational_prefs.unit_system;
|
||||||
prefs.units = informational_prefs.units;
|
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
|
// now set up the export settings to create the HTML export
|
||||||
struct htmlExportSetting hes;
|
struct htmlExportSetting hes;
|
||||||
hes.themeFile = "sand.css";
|
hes.themeFile = "sand.css";
|
||||||
|
|
Loading…
Reference in a new issue