Not saving label stuff if there are not valid labels. Not hardly checked. Time to think on embed all the data in one file...
This commit is contained in:
parent
1cfe1769e8
commit
460945eef1
1 changed files with 7 additions and 2 deletions
|
|
@ -11864,6 +11864,8 @@ static int do_save(int tool, int dont_show_success_results)
|
|||
|
||||
free(fname);
|
||||
|
||||
if (are_labels)
|
||||
{
|
||||
snprintf(tmp, sizeof(tmp), "saved/.label/%s%s", file_id, FNAME_EXTENSION);
|
||||
fname = get_fname(tmp, DIR_SAVE);
|
||||
debug(fname);
|
||||
|
|
@ -11876,11 +11878,13 @@ static int do_save(int tool, int dont_show_success_results)
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
free(fname);
|
||||
|
||||
/* saving information about text on label layer */
|
||||
|
||||
if (are_labels)
|
||||
{
|
||||
snprintf(tmp, sizeof(tmp), "saved/.label/%s.dat", file_id);
|
||||
fname = get_fname(tmp, DIR_SAVE);
|
||||
|
||||
|
|
@ -11955,6 +11959,7 @@ static int do_save(int tool, int dont_show_success_results)
|
|||
}
|
||||
fclose(fi);
|
||||
free(fname);
|
||||
}
|
||||
|
||||
show_progress_bar(screen);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue