From b79d226017b1cb090838165f5a701f90fc278709 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Mon, 2 May 2016 20:01:54 +0200 Subject: Revert "crashtesting: fix ooo123540-1.xlsx etc" This reverts commit bfca69eddd3d94e74d6b73f91476b79c8f72cce7. Rather let the caller check for a valid token instead of checking it twice for other places that already do, and we usually need two valid tokens before even one call makes sens. --- formula/source/core/api/FormulaCompiler.cxx | 3 --- 1 file changed, 3 deletions(-) (limited to 'formula') diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 85037d402877..96bb268c12f1 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -312,9 +312,6 @@ bool isRangeResultOpCode( OpCode eOp ) */ bool isPotentialRangeType( FormulaToken* pToken, bool bRPN, bool bRight ) { - if (!pToken) - return false; - switch (pToken->GetType()) { case svByte: // could be range result, but only a few -- cgit