diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx index 1aff4ab51d86..5291ad222cfa 100644 --- a/sc/source/core/data/table1.cxx +++ b/sc/source/core/data/table1.cxx @@ -456,7 +456,7 @@ bool ScTable::SetOptimalHeight( sc::RowHeightContext& rCxt, SCROW nStartRow, SCROW nEndRow, ScProgress* pOuterProgress, sal_uLong nProgressStart ) { - OSL_ENSURE( rCtx.getExtraHeight() == 0 || rCtx.isForceAutoSize(), + OSL_ENSURE( rCxt.getExtraHeight() == 0 || rCxt.isForceAutoSize(), "automatic OptimalHeight with Extra" ); if ( !pDocument->IsAdjustHeightEnabled() ) @@ -486,7 +486,7 @@ void ScTable::SetOptimalHeightOnly( sc::RowHeightContext& rCxt, SCROW nStartRow, SCROW nEndRow, ScProgress* pOuterProgress, sal_uLong nProgressStart ) { - OSL_ENSURE( rCtx.getExtraHeight() == 0 || rCtx.isForceAutoSize(), + OSL_ENSURE( rCxt.getExtraHeight() == 0 || rCxt.isForceAutoSize(), "automatic OptimalHeight with Extra" ); if ( !pDocument->IsAdjustHeightEnabled() )