On 08/15/2012 12:12 PM, Kohei Yoshida wrote:
Ah.  Now I know.  Ultimately the failure is due to StgHeader::Check()
returning false on Large-Word.doc.

http://opengrok.libreoffice.org/xref/core/sot/source/sdstor/stgelem.cxx#186

Changing this method to always return true leads to Writer loading the
file correctly.

And the check that fails is this:

( nMasterChain == -2 || ( nMasterChain >=0 && nMaster > 109 ) )

where nMasterChain == 24269 and nMaster == 2. Since nMaster > 109 is false, it returns false, and the whole thing starts to crumble...

--
Kohei Yoshida, LibreOffice hacker, Calc
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to