[Libreoffice-commits] .: oox/source

Noel Power noelp at kemper.freedesktop.org
Fri Oct 21 03:07:43 PDT 2011


 oox/source/ole/vbainputstream.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e3ef9bebf69479ead10a10a9a25d866321970edb
Author: Noel Power <noel.power at novell.com>
Date:   Fri Oct 21 10:51:10 2011 +0100

    tweak compressession hack to fix vba module import
    
    it seems that the heuristic to trigger the inflate hack from frob is both wrong in the code ( my fault ) and additionally doesn't always hold true ( found a document where the heuristic is triggered falsely ) So. removing that heuristic entirely for now

diff --git a/oox/source/ole/vbainputstream.cxx b/oox/source/ole/vbainputstream.cxx
index 8b054ea..5299b7e 100644
--- a/oox/source/ole/vbainputstream.cxx
+++ b/oox/source/ole/vbainputstream.cxx
@@ -147,7 +147,7 @@ bool VbaInputStream::updateChunk()
     // start of the next chunk we can read those strange broken
     // ( I guess from a MSO bug ) commpessed streams > 4k
 
-    if ( bIgnoreBrokenSig || ( ! ( mpInStrm->getRemaining() < 4096 ) ) )
+    if ( bIgnoreBrokenSig )
     {
         bCompressed = true;
         nChunkLen = 4094;


More information about the Libreoffice-commits mailing list