Open huseyinkozan opened 2 years ago
Hi,
Throws file not found for drawing. File does not exist inside the archive, but there is a releation.
I cannot share the file because our customer owns it.
Don't know if it is the right way, but I have fixed by adding has_file() like;
has_file()
if (manifest.has_relationship(sheet_path, xlnt::relationship_type::drawings)) { auto drawings_part = manifest.canonicalize({workbook_rel, sheet_rel, manifest.relationship(sheet_path, xlnt::relationship_type::drawings)}); if (archive_->has_file(drawings_part)) { auto receive = xml::parser::receive_default; auto drawings_part_streambuf = archive_->open(drawings_part); std::istream drawings_part_stream(drawings_part_streambuf.get()); xml::parser parser(drawings_part_stream, drawings_part.string(), receive); parser_ = &parser; read_drawings(ws, drawings_part); } }
Also, added has_file() for other open calls.
Hi,
Throws file not found for drawing. File does not exist inside the archive, but there is a releation.
I cannot share the file because our customer owns it.
Don't know if it is the right way, but I have fixed by adding
has_file()
like;Also, added
has_file()
for other open calls.