diff options
author | Eike Rathke <erack@redhat.com> | 2017-01-06 17:46:02 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-01-06 18:29:16 +0100 |
commit | 4fcbe16959c839bfacf745cfa554b234e639f794 (patch) | |
tree | 36033a312f8dfb829d2923a9bfcc200a3e3760f7 /sc/source/filter/xml/xmlimprt.cxx | |
parent | b36bf9f567f5b531f526dad6776c84e06203396f (diff) |
read single error constant formula as such, tdf#105024 related
... without creating a token so when writing again no leading '=' is prepended,
with which we can enable 5.2 to read such thing correctly, and when re-reading
in 5.3 it also doesn't lead to a "real" formula.
Change-Id: I26fbd20536436b49b781e2bbb5bba1dc6bafbb37
Diffstat (limited to 'sc/source/filter/xml/xmlimprt.cxx')
-rw-r--r-- | sc/source/filter/xml/xmlimprt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx index 6b8e31b30a25..c798e19d25d2 100644 --- a/sc/source/filter/xml/xmlimprt.cxx +++ b/sc/source/filter/xml/xmlimprt.cxx @@ -3393,12 +3393,12 @@ void ScXMLImport::ExtractFormulaNamespaceGrammar( reGrammar = eDefaultGrammar; } -bool ScXMLImport::IsFormulaErrorConstant( const OUString& rStr ) const +FormulaError ScXMLImport::GetFormulaErrorConstant( const OUString& rStr ) const { if (!mpComp) - return false; + return FormulaError::NONE; - return mpComp->GetErrorConstant(rStr) > FormulaError::NONE; + return mpComp->GetErrorConstant(rStr); } ScEditEngineDefaulter* ScXMLImport::GetEditEngine() |