Skip to content

Commit 7b05ca8

Browse files
author
Thomas Taschauer
committed
fix password-protected ODS with multiple sheet
1 parent 8077c22 commit 7b05ca8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

OpenDocumentReader/CoreWrapper.mm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ - (bool)translate:(NSString *)inputPath into:(NSString *)outputPath at:(NSNumber
3232
return false;
3333
}
3434

35-
const auto meta = translator->meta();
35+
auto meta = translator->meta();
3636

3737
bool decrypted = !meta.encrypted;
3838
if (password != nil) {
3939
decrypted = translator->decrypt([password cStringUsingEncoding:NSUTF8StringEncoding]);
40+
41+
meta = translator->meta();
4042
}
4143

4244
if (!decrypted) {

0 commit comments

Comments
 (0)