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

assert if there is a wrong index, a warning is not enough

Change-Id: I5fe16f24fab0b0c29cb9acb279e13db499bd3d1c
üst 4eb7d128
......@@ -1271,6 +1271,7 @@ rtl::OUString ScConditionEntry::GetExpression( const ScAddress& rCursor, sal_uIn
sal_uLong nNumFmt,
const FormulaGrammar::Grammar eGrammar ) const
{
assert( nIndex <= 1);
rtl::OUString aRet;
if ( FormulaGrammar::isEnglish( eGrammar) && nNumFmt == 0 )
......@@ -1314,16 +1315,13 @@ rtl::OUString ScConditionEntry::GetExpression( const ScAddress& rCursor, sal_uIn
else
mpDoc->GetFormatTable()->GetInputLineString(nVal2, nNumFmt, aRet);
}
else
{
SAL_WARN("sc", "GetExpression: falscher Index");
}
return aRet;
}
ScTokenArray* ScConditionEntry::CreateTokenArry( sal_uInt16 nIndex ) const
{
assert(nIndex <= 1);
ScTokenArray* pRet = NULL;
ScAddress aAddr;
......@@ -1353,10 +1351,6 @@ ScTokenArray* ScConditionEntry::CreateTokenArry( sal_uInt16 nIndex ) const
pRet->AddDouble( nVal2 );
}
}
else
{
SAL_WARN("sc", "GetExpression: falscher Index");
}
return pRet;
}
......
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