aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-26 12:08:22 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-26 12:08:22 -0700
commite0b1d2dc845fcd11f867cc957b968ca1cf6054fe (patch)
tree1f276e2c215dc737d544eeb69a1b031eb24676b1 /desktop-widgets
parent8fdddf371b5938810b25f9781f82fc75f22107b8 (diff)
downloadsubsurface-e0b1d2dc845fcd11f867cc957b968ca1cf6054fe.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/divelogexportdialog.cpp3
1 files changed, 0 insertions, 3 deletions
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());