Skip to content

Commit cff8ba8

Browse files
committed
fix
1 parent 790065b commit cff8ba8

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

src/odr/internal/ooxml/ooxml_file.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ class Document;
2020
namespace odr::internal::ooxml {
2121

2222
OfficeOpenXmlFile::OfficeOpenXmlFile(
23-
std::shared_ptr<abstract::ReadableFilesystem> filesystem) {
24-
m_file_meta = parse_file_meta(*filesystem);
25-
m_filesystem = std::move(filesystem);
23+
std::shared_ptr<abstract::ReadableFilesystem> filesystem)
24+
: m_filesystem(std::move(filesystem)) {
25+
m_file_meta = parse_file_meta(*m_filesystem);
26+
27+
if (m_file_meta.password_encrypted) {
28+
m_encryption_state = EncryptionState::encrypted;
29+
}
2630
}
2731

2832
std::shared_ptr<abstract::File> OfficeOpenXmlFile::file() const noexcept {

0 commit comments

Comments
 (0)