Kaydet (Commit) 2926c9e4 authored tarafından Luboš Luňák's avatar Luboš Luňák Kaydeden (comit) Tor Lillqvist

don't use opencl with deleted cells

Without this testFormulaRefUpdateDeleteAndShiftLeft2 fails with OpenCL
enabled (and the mnOpenCLMinimumFormulaGroupSize check disabled).
If I'm getting it right, anything working with #REF! (=invalid reference)
should result in #REF! too, but without this fix the function effectively
converted the #REF! to an empty cell.

Change-Id: Icdda64ad751d7c0e9c0d5995673e4fb30c4c9ac4
Reviewed-on: https://gerrit.libreoffice.org/55672Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
üst c8a739a2
......@@ -116,6 +116,8 @@ bool ScGroupTokenConverter::convert( const ScTokenArray& rCode, sc::FormulaLogge
case svSingleRef:
{
ScSingleRefData aRef = *p->GetSingleRef();
if( aRef.IsDeleted())
return false;
ScAddress aRefPos = aRef.toAbs(mrPos);
if (aRef.IsRowRel())
{
......@@ -178,6 +180,8 @@ bool ScGroupTokenConverter::convert( const ScTokenArray& rCode, sc::FormulaLogge
#if 0
ScComplexRefData aRef = *p->GetDoubleRef();
if( aRef.IsDeleted())
return false;
ScRange aAbs = aRef.toAbs(mrPos);
// Multiple sheets not handled by vector/matrix.
......
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