[Libreoffice-commits] core.git: sc/source

Caolán McNamara caolanm at redhat.com
Sun Feb 2 02:51:13 PST 2014


 sc/source/core/data/table1.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit acee46facef9f3eb3406159d6eb03e72a8f41ab0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Feb 2 10:48:36 2014 +0000

    fix dbgutil build (probably)
    
    Change-Id: Ic60f00d6b9aa450bb749e8ef8d680c4b9abbaa4a

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


More information about the Libreoffice-commits mailing list