summaryrefslogtreecommitdiff
path: root/sc/inc/formularesult.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-07-05 20:26:20 +0200
committerEike Rathke <erack@redhat.com>2012-07-05 20:39:14 +0200
commit757a346159dd51ae65767bce98a12826fef179b6 (patch)
treea7a0eca3dacc292063e7b98bc236ddc981fe6fed /sc/inc/formularesult.hxx
parent0996c0d3193352fe65414ea5577f804dbad8d07b (diff)
resolved fdo#51664 some matrix cases broken in binary Excel import
Import (ab)used ScFormulaCell::SetHybridDouble() in the sense that actually it is not a hybrid (no formula string, the token array is present in binary import) and during interpretation a matrix was expected but instead the hybrid encountered. Introduced ScFormulaCell::SetResultDouble() for exactly this case as a workaround. Change-Id: I4da3812ef4974380224b5a2bf42d0b62c14d121b
Diffstat (limited to 'sc/inc/formularesult.hxx')
-rw-r--r--sc/inc/formularesult.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/sc/inc/formularesult.hxx b/sc/inc/formularesult.hxx
index 2983176281a3..e0f586ce66c3 100644
--- a/sc/inc/formularesult.hxx
+++ b/sc/inc/formularesult.hxx
@@ -151,11 +151,13 @@ public:
void SetResultError( sal_uInt16 nErr );
/** Set direct double. Shouldn't be used externally except in
- ScFormulaCell for rounded CalcAsShown or SetErrCode(). If
- ScMatrixFormulaCellToken the token isn't replaced but upper left result
- is modified instead, but only if it was of type formula::svDouble before or not
- set at all. */
- void SetDouble( double f );
+ ScFormulaCell for rounded CalcAsShown or SetErrCode() or
+ SetResultDouble(), see there for condition. If
+ ScMatrixFormulaCellToken the token isn't replaced but upper
+ left result is modified instead, but only if it was of type
+ formula::svDouble before or not set at all.
+ */
+ SC_DLLPUBLIC void SetDouble( double f );
/** Return value if type formula::svDouble or formula::svHybridCell or formula::svMatrixCell and upper
left formula::svDouble, else 0.0 */