src/msodraw.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f0281e8d9d5731849f2b1a6eed49e4ce9fd4e2d0
Author: Miklos Vajna <[email protected]>
Date:   Wed Aug 21 12:31:58 2013 +0200

    FBSE: foDelay is not valid if cRef is 0
    
    ooo10862-1.doc triggers this.

diff --git a/src/msodraw.py b/src/msodraw.py
index 97a8ffd..87c969f 100644
--- a/src/msodraw.py
+++ b/src/msodraw.py
@@ -1097,7 +1097,7 @@ class FBSE:
             recHdl.appendLine('<todo what="FBSE::dumpXml(): cbName != 0"/>')
         if self.strm.pos < self.posOrig + rh.recLen:
             dumpChild(self.strm)
-        elif self.foDelay != 0xffffffff:
+        elif self.foDelay != 0xffffffff and self.cRef > 0:
             # Picture is in the delay stream, try to dump it.
             if model.hostApp == globals.ModelBase.HostAppType.Word:
                 posOrig = model.delayStream.pos
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to