Skip to content

Commit

Permalink
[29_12] Fix when the included file is tmfs or web
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Oct 7, 2024
1 parent 59a5053 commit 1373b19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Plugins/Pdf/pdf_hummus_make_attachment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "PDFWriter/Trace.h"
#include "file.hpp"
#include "tm_debug.hpp"
#include "tmfs_url.hpp"
using namespace PDFHummus;
using namespace IOBasicTypes;

Expand Down Expand Up @@ -71,10 +72,10 @@ pdf_hummus_make_attachments (url pdf_path, array<url> attachment_paths,
if (DEBUG_CONVERT) debug_convert << "N (attachment_paths) is 0" << LF;
return false;
}
for (int i= 0; i < N (attachment_paths); i++) {
if (!is_regular (attachment_paths[i])) {
for (url path : attachment_paths) {
if (!is_regular (path) && !is_rooted_web (path) && !is_rooted_tmfs (path)) {
if (DEBUG_CONVERT)
debug_convert << attachment_paths[i] << " is not regular" << LF;
debug_convert << path << " is not regular or web or tmfs" << LF;
return false;
}
}
Expand Down

0 comments on commit 1373b19

Please sign in to comment.