diff options
author | Eike Rathke <erack@redhat.com> | 2016-05-06 16:56:29 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-05-06 17:07:04 +0200 |
commit | bb0ef99fb9dce30e99a7e9f7fa295a634d07b423 (patch) | |
tree | 9962976de5880f7929c6b96df87b88d510b9a507 | |
parent | eeb203089f2ba6dffba9a2543c9a7e8bf551bbc5 (diff) |
Resolves: tdf#86575 for OOXML write plain #REF! if deleted parts
Change-Id: Ie3233d72bdbdd0ab82386c98a46755ce64ef3e7f
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index da93badec883..c50174b62668 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -1422,6 +1422,14 @@ struct ConventionXL_OOX : public ConventionXL_A1 aPos.SetRow(0); } + if (rRef.Ref1.IsDeleted() || (!bSingleRef && rRef.Ref2.IsDeleted())) + { + // For OOXML write plain "#REF!" instead of detailed sheet/col/row + // information. + rBuf.append(rErrRef); + return; + } + ConventionXL_A1::makeRefStr( rBuf, eGram, aPos, rErrRef, rTabNames, rRef, bSingleRef, bFromRangeName); } |