summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-12-18 21:51:18 +0100
committerEike Rathke <erack@redhat.com>2014-12-18 21:56:40 +0100
commitd249282d5165a7a4e05847a6b974d5a6df2363d7 (patch)
tree8776a68508399cf79f8c6b4356eab061e8e76eaf
parent72ee6012b056c50957e160f0ebf2b828b324db3e (diff)
line-break that into something slightly more readable within 120 columns
Change-Id: I3b97cc4b0f108c0cc6e0aa1397cf6243b7c734b0
-rw-r--r--sc/source/core/data/formulacell.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 6c6c3d4259e5..a7f48134e87f 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -1844,12 +1844,15 @@ void ScFormulaCell::InterpretTail( ScInterpretTailParameter eTailParam )
(eNew == svDouble && aResult.GetDouble() != aNewResult.GetDouble()) ||
(eNew == svString && aResult.GetString() != aNewResult.GetString()));
- // #i102616# handle special cases of initial results after loading (only if the sheet is still marked unchanged)
+ // #i102616# handle special cases of initial results after loading
+ // (only if the sheet is still marked unchanged)
if ( bChanged && !bContentChanged && pDocument->IsStreamValid(aPos.Tab()) )
{
- if ( ( eOld == svUnknown && ( eNew == svError || ( eNew == svDouble && aNewResult.GetDouble() == 0.0 ) ) ) ||
- ( (eOld == svHybridCell || eOld == svHybridValueCell) && eNew == svString && aResult.GetString() == aNewResult.GetString() ) ||
- ( eOld == svDouble && eNew == svDouble && rtl::math::approxEqual( aResult.GetDouble(), aNewResult.GetDouble() ) ) )
+ if ((eOld == svUnknown && (eNew == svError || (eNew == svDouble && aNewResult.GetDouble() == 0.0))) ||
+ ((eOld == svHybridCell || eOld == svHybridValueCell) &&
+ eNew == svString && aResult.GetString() == aNewResult.GetString()) ||
+ (eOld == svDouble && eNew == svDouble &&
+ rtl::math::approxEqual( aResult.GetDouble(), aNewResult.GetDouble())))
{
// no change, see above
}