Kaydet (Commit) f1d40d4f authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

simplify

Change-Id: I1de47afface7d221f7df43ae4e0bfa7d1cb4f4ce
üst e51e63e9
......@@ -663,10 +663,9 @@ static void lcl_SetTblSeparators(const uno::Any& rVal, SwTable* pTable, SwTableB
const uno::Sequence< text::TableColumnSeparator>* pSepSeq =
static_cast<uno::Sequence< text::TableColumnSeparator> const *>(rVal.getValue());
if(pSepSeq && static_cast<size_t>(pSepSeq->getLength()) == nOldCount)
{
if(!pSepSeq || static_cast<size_t>(pSepSeq->getLength()) != nOldCount)
return;
SwTabCols aCols(aOldCols);
bool bError = false;
const text::TableColumnSeparator* pArray = pSepSeq->getConstArray();
long nLastValue = 0;
//sal_Int32 nTblWidth = aCols.GetRight() - aCols.GetLeft();
......@@ -677,17 +676,10 @@ static void lcl_SetTblSeparators(const uno::Any& rVal, SwTable* pTable, SwTableB
(!bRow && aCols.IsHidden(i)) ||
aCols[i] < nLastValue ||
UNO_TABLE_COLUMN_SUM < aCols[i] )
{
bError = true;
break;
}
return; // probably this should assert()
nLastValue = aCols[i];
}
if(!bError)
{
pDoc->SetTabCols(*pTable, aCols, aOldCols, pBox, bRow );
}
}
}
static inline OUString lcl_getString( SwXCell &rCell )
......
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