mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Inform user if there was no dive profile in DL7/ZXU file
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
f3ab2ee674
commit
e25cecf37c
1 changed files with 4 additions and 0 deletions
|
@ -945,6 +945,10 @@ int parse_dan_format(const char *filename, char **params, int pnr)
|
|||
params[pnr + 6] = NULL;
|
||||
|
||||
ptr = strstr(ptr, "ZDP{");
|
||||
if (ptr && ptr[4] == '}') {
|
||||
end_ptr += ptr - (char *)mem_csv.buffer;
|
||||
return report_error(translate("gettextFromC", "No dive profile found from '%s'"), filename);
|
||||
}
|
||||
if (ptr)
|
||||
ptr = strstr(ptr, NL);
|
||||
if (ptr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue