summaryrefslogtreecommitdiff
path: root/sc/inc/refdata.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-07-22 13:08:31 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-07-24 23:29:36 -0400
commit3ed4796949d184a14b0df979bdb84012d6611e2c (patch)
treee55593e9d631433a988bb40d4f88811016024479 /sc/inc/refdata.hxx
parentfce2abf00547b2d0d48b52703d91d9d41b2a675b (diff)
Don't mark all of column, row, and sheet indices to be invalid in toAbs().
When only one of them is invalid. This messes up the displaying of an invalid reference. Change-Id: I2b5a614434417160d605dd889ca4d3b54fcaffc2
Diffstat (limited to 'sc/inc/refdata.hxx')
-rw-r--r--sc/inc/refdata.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx
index 92bf5b9190fa..259b63f0310f 100644
--- a/sc/inc/refdata.hxx
+++ b/sc/inc/refdata.hxx
@@ -23,6 +23,7 @@
#include "global.hxx"
#include "address.hxx"
#include "scdllapi.h"
+#include "calcmacros.hxx"
/// Single reference (one address) into the sheet
struct SC_DLLPUBLIC ScSingleRefData
@@ -91,6 +92,10 @@ struct SC_DLLPUBLIC ScSingleRefData
void CalcAbsIfRel( const ScAddress& rPos );
bool operator==( const ScSingleRefData& ) const;
bool operator!=( const ScSingleRefData& ) const;
+
+#if DEBUG_FORMULA_COMPILER
+ void Dump() const;
+#endif
};
inline void ScSingleRefData::InitAddress( SCCOL nColP, SCROW nRowP, SCTAB nTabP )
@@ -178,6 +183,10 @@ struct ScComplexRefData
relative references. */
ScComplexRefData& Extend( const ScSingleRefData & rRef, const ScAddress & rPos );
ScComplexRefData& Extend( const ScComplexRefData & rRef, const ScAddress & rPos );
+
+#if DEBUG_FORMULA_COMPILER
+ void Dump() const;
+#endif
};
inline bool ScComplexRefData::ValidExternal() const