fpspreadsheet: Fix ooxml writer for conditional formatting broken in one of previous commits.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7513 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz 2020-07-01 16:26:01 +00:00
parent fba35bacb4
commit f1421b2b80

View File

@ -391,6 +391,8 @@ const
);
function CFOperandToStr(v: Variant): String;
const
ERR = cardinal(-1);
var
r, c: Cardinal;
begin
@ -401,7 +403,7 @@ begin
if Result[1] = '=' then
Delete(Result, 1, 1)
else
if ParseCellString(Result, r, c) then
if ParseCellString(Result, r, c) and (r <> ERR) and (c <> ERR) then
Result := GetCellString(r, c, [])
else
if VarIsStr(v) then