[Libreoffice-commits] .: sc/source
Joseph Powers
jpowers at kemper.freedesktop.org
Thu Dec 2 20:22:18 PST 2010
sc/source/core/tool/interpr4.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ac4be889852afced21bd15ca8d28559b0e2dc8a3
Author: Joseph Powers <jpowers27 at cox.net>
Date: Thu Dec 2 20:22:07 2010 -0800
Fix another mistake in my patch
Hopefully this is the last fix.
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index 5ffc89f..e09f648 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -1234,7 +1234,7 @@ void ScInterpreter::DoubleRefToVars( const ScToken* p,
const ScComplexRefData& rCRef = p->GetDoubleRef();
SingleRefToVars( rCRef.Ref1, rCol1, rRow1, rTab1);
SingleRefToVars( rCRef.Ref2, rCol2, rRow2, rTab2);
- if ( !pDok->aTableOpList.empty() > 0 && !bDontCheckForTableOp )
+ if ( !pDok->aTableOpList.empty() && !bDontCheckForTableOp )
{
ScRange aRange( rCol1, rRow1, rTab1, rCol2, rRow2, rTab2 );
if ( IsTableOpInRange( aRange ) )
@@ -1319,7 +1319,7 @@ void ScInterpreter::DoubleRefToRange( const ScComplexRefData & rCRef,
rRange.aStart.Set( nCol, nRow, nTab );
SingleRefToVars( rCRef.Ref2, nCol, nRow, nTab);
rRange.aEnd.Set( nCol, nRow, nTab );
- if (! pDok->aTableOpList.empty() > 0 && !bDontCheckForTableOp )
+ if (! pDok->aTableOpList.empty() && !bDontCheckForTableOp )
{
if ( IsTableOpInRange( rRange ) )
SetError( errIllegalParameter );
More information about the Libreoffice-commits
mailing list