From 676e17a57f3d832a15ba387f969c969dcd816120 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 21 Jan 2019 16:00:02 +0100 Subject: Add export variable containing the profile image filename This way, templates in particluar can choose arbitrary geometries for the profile image. Signed-off-by: Robert C. Helling --- desktop-widgets/divelogexportdialog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets') diff --git a/desktop-widgets/divelogexportdialog.cpp b/desktop-widgets/divelogexportdialog.cpp index 9c08d7f08..0ffffb9f7 100644 --- a/desktop-widgets/divelogexportdialog.cpp +++ b/desktop-widgets/divelogexportdialog.cpp @@ -358,6 +358,7 @@ void DiveLogExportDialog::export_TeX(const char *filename, const bool selected_o put_format(&buf, "\\def\\%sviz{%s}\n", ssrf, qPrintable(viz)); put_format(&buf, "\\def\\%srating{%s}\n", ssrf, qPrintable(rating)); put_format(&buf, "\\def\\%splot{\\includegraphics[width=9cm,height=4cm]{profile%d}}\n", ssrf, dive->number); + put_format(&buf, "\\def\\%sprofilename{profile%d}\n", ssrf, dive->number); put_format(&buf, "\\def\\%scomment{%s}\n", ssrf, dive->notes ? dive->notes : ""); put_format(&buf, "\\def\\%sbuddy{%s}\n", ssrf, dive->buddy ? dive->buddy : ""); put_format(&buf, "\\def\\%sdivemaster{%s}\n", ssrf, dive->divemaster ? dive->divemaster : ""); -- cgit v1.2.3-70-g09d2