mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed bug with moving attachments with thumbnails
SVN revision: 2353
This commit is contained in:
parent
17fa0b9f47
commit
294ae90a04
@ -22774,7 +22774,7 @@ void submit_elog_mirror(LOGBOOK * lbs)
|
|||||||
|
|
||||||
void copy_to(LOGBOOK * lbs, int src_id, char *dest_logbook, int move, int orig_id)
|
void copy_to(LOGBOOK * lbs, int src_id, char *dest_logbook, int move, int orig_id)
|
||||||
{
|
{
|
||||||
int size, i, n, n_done, n_done_reply, n_reply, index, status, fh, source_id, message_id,
|
int size, i, j, n, n_done, n_done_reply, n_reply, index, status, fh, source_id, message_id,
|
||||||
thumb_status, next_id = 0;
|
thumb_status, next_id = 0;
|
||||||
char str[256], str2[256], file_name[MAX_PATH_LENGTH], thumb_name[MAX_PATH_LENGTH],
|
char str[256], str2[256], file_name[MAX_PATH_LENGTH], thumb_name[MAX_PATH_LENGTH],
|
||||||
*attrib, date[80], *text, msg_str[32], in_reply_to[80],
|
*attrib, date[80], *text, msg_str[32], in_reply_to[80],
|
||||||
@ -22903,8 +22903,8 @@ void copy_to(LOGBOOK * lbs, int src_id, char *dest_logbook, int move, int orig_i
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (thumb_status == 2) {
|
if (thumb_status == 2) {
|
||||||
for (i = 0;; i++) {
|
for (j = 0;; j++) {
|
||||||
get_thumb_name(file_name, thumb_name, sizeof(thumb_name), i);
|
get_thumb_name(file_name, thumb_name, sizeof(thumb_name), j);
|
||||||
if (thumb_name[0]) {
|
if (thumb_name[0]) {
|
||||||
fh = open(thumb_name, O_RDONLY | O_BINARY);
|
fh = open(thumb_name, O_RDONLY | O_BINARY);
|
||||||
if (fh > 0) {
|
if (fh > 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user