Index: fp_TableContainer.cpp =================================================================== RCS file: /cvsroot/abi/src/text/fmt/xp/fp_TableContainer.cpp,v retrieving revision 1.110.2.5 diff -u -r1.110.2.5 fp_TableContainer.cpp --- fp_TableContainer.cpp 4 Jun 2004 17:25:50 -0000 1.110.2.5 +++ fp_TableContainer.cpp 21 Aug 2004 18:45:15 -0000 @@ -206,11 +206,12 @@ UT_DEBUGMSG(("getColumn in nested table \n")); } bool bStop = false; + fp_CellContainer * pCell = NULL; fp_Column * pCol = NULL; // // Now FIXED for nested tables off first page // - while(pBroke->isThisBroken() && !bStop) + while(pBroke && pBroke->isThisBroken() && !bStop) { fp_Container * pCon = pBroke->getContainer(); if(pCon->getContainerType() == FP_CONTAINER_COLUMN) @@ -220,10 +221,18 @@ } else { - fp_CellContainer * pCell = static_cast(pBroke->getContainer()); + pCell = static_cast(pBroke->getContainer()); UT_ASSERT(pCell->getContainerType() == FP_CONTAINER_CELL); pBroke = pCell->getBrokenTable(static_cast(pBroke)); } } + if(pCell && (pBroke == NULL)) + { + return static_cast(static_cast(pCell)->getColumn()); + } + else if(pBroke == NULL) + { + return NULL; + } if(!bStop) { pCol = static_cast(pBroke->getContainer());