diff options
author | Eike Rathke <erack@redhat.com> | 2013-03-15 19:33:03 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-03-15 19:34:05 +0100 |
commit | 2ded844730e178b71183988e9078881a8c43dded (patch) | |
tree | 624ed04c5386db0c5b3df8003b67576c4a9a1543 /svl | |
parent | rename methods to something meaningful (diff) | |
download | core-2ded844730e178b71183988e9078881a8c43dded.tar.gz core-2ded844730e178b71183988e9078881a8c43dded.zip |
clarify logic
Change-Id: Idc223daa6034b359ac62693ce8dfebed846d5789
Diffstat (limited to 'svl')
-rw-r--r-- | svl/inc/svl/zformat.hxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/svl/inc/svl/zformat.hxx b/svl/inc/svl/zformat.hxx index ba56235c9825..6b0a054a2021 100644 --- a/svl/inc/svl/zformat.hxx +++ b/svl/inc/svl/zformat.hxx @@ -328,12 +328,11 @@ public: bool IsFirstSubformatRealNegative() const { return fLimit1 == 0.0 && fLimit2 == 0.0 && - ( (eOp2 == NUMBERFORMAT_OP_GT && eOp1 == NUMBERFORMAT_OP_LT) || - (eOp2 == NUMBERFORMAT_OP_EQ && eOp1 == NUMBERFORMAT_OP_LT) || - (eOp2 == NUMBERFORMAT_OP_GE && eOp1 == NUMBERFORMAT_OP_LT) || - (eOp2 == NUMBERFORMAT_OP_NO && eOp1 == NUMBERFORMAT_OP_LT) || - (eOp2 == NUMBERFORMAT_OP_NO && eOp1 == NUMBERFORMAT_OP_LE) || - (eOp2 == NUMBERFORMAT_OP_GT && eOp1 == NUMBERFORMAT_OP_LE)); + ((eOp1 == NUMBERFORMAT_OP_LT && + (eOp2 == NUMBERFORMAT_OP_GT || eOp2 == NUMBERFORMAT_OP_EQ || + eOp2 == NUMBERFORMAT_OP_GE || eOp2 == NUMBERFORMAT_OP_NO)) || + (eOp1 == NUMBERFORMAT_OP_LE && + (eOp2 == NUMBERFORMAT_OP_NO || eOp2 == NUMBERFORMAT_OP_GT))); } // Whether the negative format is without a sign or not |