sc/source/core/data/validat.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
New commits: commit 0a03aedfb1dcd07093810ff435bc287377a53e85 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Jan 5 13:08:10 2016 +0100 loplugin:bodynotinblock Change-Id: I7b53113c0665fbd705b9110075f0d707c7798fdd diff --git a/sc/source/core/data/validat.cxx b/sc/source/core/data/validat.cxx index c4c4ba6..e9cff1e 100644 --- a/sc/source/core/data/validat.cxx +++ b/sc/source/core/data/validat.cxx @@ -572,19 +572,19 @@ bool ScValidationData::IsDataValid( ScRefCellValue& rCell, const ScAddress& rPos break; case SC_COND_BETWEEN: if (nComp2 < nComp1) // time wraparound - bOk = ( nInVal >= nComp1 || nInVal <= nComp2 ) || - ::rtl::math::approxEqual( nInVal, nComp1 ) || ::rtl::math::approxEqual( nInVal, nComp2 ); + bOk = ( nInVal >= nComp1 || nInVal <= nComp2 ) || + ::rtl::math::approxEqual( nInVal, nComp1 ) || ::rtl::math::approxEqual( nInVal, nComp2 ); else - bOk = ( nInVal >= nComp1 && nInVal <= nComp2 ) || - ::rtl::math::approxEqual( nInVal, nComp1 ) || ::rtl::math::approxEqual( nInVal, nComp2 ); + bOk = ( nInVal >= nComp1 && nInVal <= nComp2 ) || + ::rtl::math::approxEqual( nInVal, nComp1 ) || ::rtl::math::approxEqual( nInVal, nComp2 ); break; case SC_COND_NOTBETWEEN: if (nComp2 < nComp1) // time wraparound - bOk = ( nInVal < nComp1 && nInVal > nComp2 ) && - !::rtl::math::approxEqual( nInVal, nComp1 ) && !::rtl::math::approxEqual( nInVal, nComp2 ); + bOk = ( nInVal < nComp1 && nInVal > nComp2 ) && + !::rtl::math::approxEqual( nInVal, nComp1 ) && !::rtl::math::approxEqual( nInVal, nComp2 ); else - bOk = ( nInVal < nComp1 || nInVal > nComp2 ) && - !::rtl::math::approxEqual( nInVal, nComp1 ) && !::rtl::math::approxEqual( nInVal, nComp2 ); + bOk = ( nInVal < nComp1 || nInVal > nComp2 ) && + !::rtl::math::approxEqual( nInVal, nComp1 ) && !::rtl::math::approxEqual( nInVal, nComp2 ); break; default: SAL_WARN("sc", "unknown operation at ScValidationData::IsDataValid()"); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits