Kaydet (Commit) c4ed1eb3 authored tarafından Eike Rathke's avatar Eike Rathke

assert(nStartRow <= nEndRow)

Zero or negative count is unhealthy..

Change-Id: I4cce6c896e73e8e964518cbe4a29eb03ed481251
üst 46fa99f6
......@@ -84,6 +84,8 @@ void GetOptimalHeightsInColumn(
sc::RowHeightContext& rCxt, ScColumn* pCol, SCROW nStartRow, SCROW nEndRow,
ScProgress* pProgress, sal_uInt32 nProgressStart )
{
assert(nStartRow <= nEndRow);
SCSIZE nCount = static_cast<SCSIZE>(nEndRow-nStartRow+1);
// first, one time over the whole range
......@@ -460,6 +462,8 @@ bool ScTable::SetOptimalHeight(
sc::RowHeightContext& rCxt, SCROW nStartRow, SCROW nEndRow,
ScProgress* pOuterProgress, sal_uLong nProgressStart )
{
assert(nStartRow <= nEndRow);
OSL_ENSURE( rCxt.getExtraHeight() == 0 || rCxt.isForceAutoSize(),
"automatic OptimalHeight with Extra" );
......
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