Skip to content

Commit

Permalink
workaround of issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
JayXon committed Oct 27, 2014
1 parent 265a6ff commit 4b81a10
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion formats/zip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,12 @@ size_t Zip::Leanify(size_t size_leanified /*= 0*/)
}

// Leanify uncompressed file
uint32_t new_uncompressed_size = LeanifyFile(buffer, s);
uint32_t new_uncompressed_size = s;
// workaround of TinyXML2 not supporting xml:space="preserve"
if (filename_length != 17 || memcmp(p_write - filename_length, "word/document.xml", filename_length))
{
new_uncompressed_size = LeanifyFile(buffer, s);
}

// recompress
unsigned char bp = 0, *out = NULL;
Expand Down

0 comments on commit 4b81a10

Please sign in to comment.