Skip to content

Commit

Permalink
Rememove centrigade/celsius confusion in TeX export
Browse files Browse the repository at this point in the history
Signed-off-by: Robert C. Helling <[email protected]>
  • Loading branch information
atdotde authored and dirkhh committed Jan 26, 2019
1 parent 676e17a commit 08b679e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion desktop-widgets/divelogexportdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void DiveLogExportDialog::export_TeX(const char *filename, const bool selected_o
put_format(&buf, "\\def\\%sdepthunit{\\%sunit%s}", ssrf, ssrf, units->length == units::METERS ? "meter" : "ft");
put_format(&buf, "\\def\\%sweightunit{\\%sunit%s}",ssrf, ssrf, units->weight == units::KG ? "kg" : "lb");
put_format(&buf, "\\def\\%spressureunit{\\%sunit%s}", ssrf, ssrf, units->pressure == units::BAR ? "bar" : "psi");
put_format(&buf, "\\def\\%stemperatureunit{\\%sunit%s}", ssrf, ssrf, units->temperature == units::CELSIUS ? "celsius" : "fahrenheit");
put_format(&buf, "\\def\\%stemperatureunit{\\%sunit%s}", ssrf, ssrf, units->temperature == units::CELSIUS ? "centigrade" : "fahrenheit");
put_format(&buf, "\\def\\%svolumeunit{\\%sunit%s}", ssrf, ssrf, units->volume == units::LITER ? "liter" : "cuft");
put_format(&buf, "\\def\\%sverticalspeedunit{\\%sunit%s}", ssrf, ssrf, units->length == units::METERS ? "meterpermin" : "ftpermin");

Expand Down
2 changes: 1 addition & 1 deletion subsurfacetemplate.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
\def\unitlb{lb}
\def\unitbar{bar}
\def\unitpsi{psi}
\def\unitcentigrate{${}^\circ$C}
\def\unitcentigrade{${}^\circ$C}
\def\unitfahrenheit{${}^\circ$F}
\def\unitliter{$\ell$}
\def\unitcuft{cuft}
Expand Down

0 comments on commit 08b679e

Please sign in to comment.