--- psiconv/trunk/lib/psiconv/parse_sheet.c 2001/07/24 22:44:59 132 +++ psiconv/trunk/lib/psiconv/parse_sheet.c 2001/07/24 22:50:33 133 @@ -1213,7 +1213,7 @@ psiconv_sheet_worksheet *result) { int res=0; - psiconv_u32 temp,cells_off,grid_off,rows_off,cols_off; + psiconv_u32 temp,cells_off,grid_off,rows_off,cols_off,unknown_off; int len=0; int leng; @@ -1287,10 +1287,23 @@ psiconv_progress(lev+2,off+len, "Going to read the offset of the 3rd ??? Section"); - temp = psiconv_read_u32(buf,lev+2,off+len,&res); + unknown_off = psiconv_read_u32(buf,lev+2,off+len,&res); if (res) goto ERROR3; - psiconv_debug(lev+2,off+len,"Offset: %04x",temp); + psiconv_debug(lev+2,off+len,"Offset: %04x",unknown_off); + len += 4; + + psiconv_progress(lev+2,off+len, + "Going to read a long of the 3rd ??? Section " + "(%08x expected)",0x00); + temp = psiconv_read_u32(buf,lev+2,unknown_off,&res); + if (res) + goto ERROR3; + if (temp != 0x00) { + psiconv_warn(lev+2,unknown_off, + "Unknown worksheet subsection has unknown contents (ignored)"); + psiconv_debug(lev+2,unknown_off,"Offset: %04x",temp); + } len += 4; psiconv_progress(lev+2,off+len,"Going to read the row defaults");