summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej@ahunt.org>2015-06-03 15:58:29 +0100
committerAndrzej Hunt <andrzej@ahunt.org>2015-10-20 18:18:41 +0200
commit3c36fd800c06b163ab2862b6067c751b7b9dd1ac (patch)
treef8362772290aaca43e74f7e48acb4b62ab7b7f09
parent09556129755e2aebee2ebf656e9e6689eb562118 (diff)
Don't assert on unsupported opcode, return unknown instead
We should eventually support all opcodes, but crashing* isn't really the correct response if not. *or continuing with completely wrong behvaiour in non-debug builds. Change-Id: I22d7746f4e809bdc3da62b8b6f741216504b3f22
-rw-r--r--sc/source/core/units/unitsimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/units/unitsimpl.cxx b/sc/source/core/units/unitsimpl.cxx
index c440df605be9..66f501939862 100644
--- a/sc/source/core/units/unitsimpl.cxx
+++ b/sc/source/core/units/unitsimpl.cxx
@@ -162,7 +162,7 @@ UnitsResult UnitsImpl::getOutputUnitsForOpCode(stack< RAUSItem >& rStack, const
break;
default:
SAL_INFO("sc.units", "unit verification not supported for opcode: " << nOpCode);
- assert(false);
+ return { FormulaStatus::UNKNOWN, boost::none };
}
} else if (nOpCode >= SC_OPCODE_START_2_PAR &&
nOpCode < SC_OPCODE_STOP_2_PAR) {