Kaydet (Commit) d1fcea67 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

Revert "if/else branches contain same code"

This reverts commit 13bf1976.
üst 300365c2
...@@ -749,12 +749,25 @@ void Chart2Positioner::createPositionMap() ...@@ -749,12 +749,25 @@ void Chart2Positioner::createPositionMap()
for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol, ++nInsCol) for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol, ++nInsCol)
{ {
pCol = static_cast<Table*>(pCols->Get(nInsCol)); if (bNoGlue || meGlue == GLUETYPE_ROWS)
if (!pCol)
{ {
pCol = pNewRowTable.get(); pCol = static_cast<Table*>(pCols->Get(nInsCol));
pCols->Insert(nInsCol, pNewRowTable.release()); if (!pCol)
pNewRowTable.reset(new Table); {
pCol = pNewRowTable.get();
pCols->Insert(nInsCol, pNewRowTable.release());
pNewRowTable.reset(new Table);
}
}
else
{
pCol = static_cast<Table*>(pCols->Get(nInsCol));
if (!pCol)
{
pCol = pNewRowTable.get();
pCols->Insert(nInsCol, pNewRowTable.release());
pNewRowTable.reset(new Table);
}
} }
sal_uInt32 nInsRow = static_cast<sal_uInt32>(bNoGlue ? nNoGlueRow : nRow1); sal_uInt32 nInsRow = static_cast<sal_uInt32>(bNoGlue ? nNoGlueRow : nRow1);
......
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