fftester: fail on double parse of the same table

Change-Id: I3e462cdc8812d0ac55d9896d2b04ace34a6c4670
This commit is contained in:
Caolán McNamara
2016-05-08 17:25:33 +01:00
parent ace0b3bdec
commit 4e509d80ee
2 changed files with 10 additions and 7 deletions

Binary file not shown.

View File

@@ -754,9 +754,8 @@ void LwpTableLayout::RegisterStyle()
// so the NULL pointer cause sodc freeze. Add code to check the
// the pointer.
//New Code
if( GetFoundry() && GetTable() )
PutCellVals( GetFoundry(),GetTable()->GetObjectID() );
if (GetFoundry() && GetTable())
PutCellVals(GetFoundry(), GetTable()->GetObjectID());
}
/**
* @short read table layout
@@ -765,11 +764,15 @@ void LwpTableLayout::RegisterStyle()
void LwpTableLayout::ParseTable()
{
// get super table layout
LwpSuperTableLayout * pSuper = GetSuperTableLayout();
if(!pSuper)
LwpSuperTableLayout* pSuper = GetSuperTableLayout();
if (!pSuper)
{
assert(false);
return;
throw std::runtime_error("missing super table");
}
if (m_pXFTable.get())
{
throw std::runtime_error("this table is already parsed");
}
// set name of object