From 2ec3127da35933fc6d5ac47ecedd0267f67c1d62 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 11 Feb 2014 13:28:47 -0500 Subject: Ensure that vector array has a numeric array of NaN's for empty range. With this change, we ensure that mpNumArray is never NULL even when the range consists entirely of empty cells. For an empty range, mpNumArray will be non-NULL and filled with NaN's while mpStrArray will be NULL. Change-Id: If5cead26ebe917af150cf7e39e17afe3f310beb7 --- sc/inc/document.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sc/inc/document.hxx') diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index 032675b891fa..129450389b80 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -2047,9 +2047,10 @@ public: formula::VectorRefArray FetchVectorRefArray( const ScAddress& rPos, SCROW nLength ); /** - * Called whenever the value of a cell inside the document is modified. + * Call this before any operations that might trigger one or more formula + * cells to get calculated. */ - void CellContentModified(); + void ClearFormulaContext(); SvtBroadcaster* GetBroadcaster( const ScAddress& rPos ); const SvtBroadcaster* GetBroadcaster( const ScAddress& rPos ) const; -- cgit