summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-02-18 12:20:08 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-02-18 12:20:08 +0100
commit0a8bcd8256f2618b30c9767d5eaddb51ec3d9a8e (patch)
treee7243fb60affc552c505e84b2fb65c08ed34df9a /sc
parentc19c242ec0757d5d5f2936e2a57430e39c692b2b (diff)
Avoid numeric overflow when printing BCA_LISTEN_ALWAYS range
...where nRow=SCROW_MAX, so lcl_a1_append_r (sc/source/core/tool/address.cxx) would attempt rString.append( nRow + 1 ); not sure such formatting of BCA_LISTEN_ALWAYS should be special-cased more centrally. Change-Id: I338a953a82245c65d116746b101bbc52cf73d3f6
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/grouparealistener.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/grouparealistener.cxx b/sc/source/core/tool/grouparealistener.cxx
index 656c931445eb..6ff467c89ee7 100644
--- a/sc/source/core/tool/grouparealistener.cxx
+++ b/sc/source/core/tool/grouparealistener.cxx
@@ -86,7 +86,7 @@ FormulaGroupAreaListener::FormulaGroupAreaListener( const ScRange& rRange, const
assert(mpColumn);
SAL_INFO( "sc.core.grouparealistener",
"FormulaGroupAreaListener ctor this " << this <<
- " range " << maRange.Format(SCA_VALID) <<
+ " range " << (maRange == BCA_LISTEN_ALWAYS ? "LISTEN-ALWAYS" : maRange.Format(SCA_VALID)) <<
" mnTopCellRow " << mnTopCellRow << " length " << mnGroupLen);
}
@@ -94,7 +94,7 @@ FormulaGroupAreaListener::~FormulaGroupAreaListener()
{
SAL_INFO( "sc.core.grouparealistener",
"FormulaGroupAreaListener dtor this " << this <<
- " range " << maRange.Format(SCA_VALID) <<
+ " range " << (maRange == BCA_LISTEN_ALWAYS ? "LISTEN-ALWAYS" : maRange.Format(SCA_VALID)) <<
" mnTopCellRow " << mnTopCellRow << " length " << mnGroupLen);
}
@@ -184,7 +184,7 @@ void FormulaGroupAreaListener::collectFormulaCells(
{
SAL_INFO( "sc.core.grouparealistener",
"FormulaGroupAreaListener::collectFormulaCells() this " << this <<
- " range " << maRange.Format(SCA_VALID) <<
+ " range " << (maRange == BCA_LISTEN_ALWAYS ? "LISTEN-ALWAYS" : maRange.Format(SCA_VALID)) <<
" mnTopCellRow " << mnTopCellRow << " length " << mnGroupLen);
ScFormulaCell* const * pp = mpColumn->GetFormulaCellBlockAddress( mnTopCellRow);