--- PluckerDocs.py.orig	Sun Aug 17 15:33:53 2003
+++ PluckerDocs.py	Tue Aug 19 21:07:55 2003
@@ -1882,6 +1882,8 @@
         self.rows = []
         self.attributes = attr
         self.depth = depth
+        if self.depth < 1:
+            self.depth = 1
         self.border_color = border_color
         self.link_color = link_color
 
@@ -1996,6 +1998,8 @@
                     start = struct.pack (">BBH", 0, 0x0A, acell.link_ref)
                     end = struct.pack (">BB", 0, 0x08)
                     acell.text = start + acell.text + end
+                if acell.image_ref is None:
+                    acell.image_ref = 0
 
     def dump_record (self, id):
 
