From e0b1d2dc845fcd11f867cc957b968ca1cf6054fe Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 26 Aug 2017 12:08:22 -0700 Subject: Tex export: remove incorrect code These two variables are calculated later in the function and the same two lines of code are there again. Signed-off-by: Dirk Hohndel --- desktop-widgets/divelogexportdialog.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/divelogexportdialog.cpp b/desktop-widgets/divelogexportdialog.cpp index eeaabb35b..f1b459b48 100644 --- a/desktop-widgets/divelogexportdialog.cpp +++ b/desktop-widgets/divelogexportdialog.cpp @@ -338,9 +338,6 @@ void DiveLogExportDialog::export_TeX(const char *filename, const bool selected_o dive->maxdepth.mm ? put_format(&buf, "\\def\\maximumdepth{%.1f\\depthunit}\n", get_depth_units(dive->maxdepth.mm, NULL, &unit)) : put_format(&buf, "\\def\\maximumdepth{}\n"); dive->meandepth.mm ? put_format(&buf, "\\def\\meandepth{%.1f\\depthunit}\n", get_depth_units(dive->meandepth.mm, NULL, &unit)) : put_format(&buf, "\\def\\meandepth{}\n"); - put_format(&buf, "\\def\\qtyweights{%d}\n", qty_weight); - put_format(&buf, "\\def\\totalweight{%u.%01u kg}\n", FRACTION(total_weight, 1000)); - put_format(&buf, "\\def\\type{%s}\n", dive->tag_list ? dive->tag_list->tag->name : ""); put_format(&buf, "\\def\\viz{%s}\n", viz.toUtf8().data()); put_format(&buf, "\\def\\rating{%s}\n", rating.toUtf8().data()); -- cgit v1.2.3-70-g09d2