Kaydet (Commit) 7d2ec4c0 authored tarafından Caolán McNamara's avatar Caolán McNamara

dig out lotuswordpros table limits

Change-Id: Iea7d436a78336de150b3d3ae317b99b554fb8657
üst d6960667
......@@ -170,7 +170,10 @@ protected:
LwpObjectID cDefaultLeftColumnStyle;
LwpObjectID cDefaultRightColumnStyle;
#define MAX_NUM_ROWS 8192
#define MAX_NUM_COLS 255
class LwpGlossary : public LwpParallelColumns
......@@ -700,6 +700,14 @@ void LwpTableLayout::RegisterStyle()
// get row/column number of this table
m_nRows = pTable->GetRow();
m_nCols = pTable->GetColumn();
//tables with up to 255 rows and 8192 columns
//the row limit tallies with the casting of m_nCols to an unsigned char
if (m_nRows > MAX_NUM_ROWS)
throw std::runtime_error("max legal row exceeded");
if (m_nCols > MAX_NUM_COLS)
throw std::runtime_error("max legal column exceeded");
// get default cell layout of current table
LwpObjectID& rID= pTable->GetDefaultCellStyle();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment