diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-05 20:38:57 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-06 00:26:41 +0200 |
commit | e454487d3a7349a1ec19b9785e36ad9e50add542 (patch) | |
tree | ca4d3d00e4dcdf4446dcc3ab7aecc8e4b37ddf0f | |
parent | 72f1b6743ad5e6b1f8daeac1d1a2b3da4c3fde54 (diff) |
use parantheses to prevent wrong evaluation
Change-Id: Ia872b5648286fd76039f7c397ea78e18bc2ad6b8
-rw-r--r-- | sc/source/core/data/document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 5ebd9f566be5..14b6983d2990 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -4213,7 +4213,7 @@ void ScDocument::ApplyPatternIfNumberformatIncompatible( const ScRange& rRange, void ScDocument::AddCondFormatData( const ScRangeList& rRange, SCTAB nTab, sal_uInt32 nIndex ) { - if(!static_cast<SCTAB>(nTab) < maTabs.size()) + if(!(static_cast<size_t>(nTab) < maTabs.size())) return; if(!maTabs[nTab]) |