Signed-off-by: Miika Turkia <[email protected]>
---
qt-ui/divelogexportdialog.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/qt-ui/divelogexportdialog.cpp b/qt-ui/divelogexportdialog.cpp
index 0193ea5..a747932 100644
--- a/qt-ui/divelogexportdialog.cpp
+++ b/qt-ui/divelogexportdialog.cpp
@@ -320,7 +320,7 @@ void DiveLogExportDialog::export_depths(const char
*filename, const bool selecte
struct dive *dive;
depth_t depth;
int i;
- const char **unit = NULL;
+ const char *unit = NULL;
struct membuffer buf = { 0 };
@@ -336,7 +336,7 @@ void DiveLogExportDialog::export_depths(const char
*filename, const bool selecte
depth.mm = s->depth.mm;
s++;
}
- put_format(&buf, "%s\t%.1f%s\n", picture->filename,
get_depth_units(depth.mm, NULL, unit), *unit);
+ put_format(&buf, "%s\t%.1f%s\n", picture->filename,
get_depth_units(depth.mm, NULL, &unit), unit);
}
}
--
1.9.1
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface