sc/source/core/tool/detfunc.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
New commits: commit a95b58060b01046a8881e97e0c5016e44200dd32 Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Feb 10 11:56:29 2014 +0100 loplugin:implicitboolconversion, loplugin:literaltoboolconversion Change-Id: I5940b122d3ed6e2d6464e407e592c4810499ff1f diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx index 55a3dea..0ccd696 100644 --- a/sc/source/core/tool/detfunc.cxx +++ b/sc/source/core/tool/detfunc.cxx @@ -679,7 +679,7 @@ void ScDetectiveFunc::DeleteArrowsAt( SCCOL nCol, SCROW nRow, bool bDestPnt ) if ( pObject->GetLayer()==SC_LAYER_INTERN && pObject->IsPolyObj() && pObject->GetPointCount()==2 ) { - if (aRect.IsInside(pObject->GetPoint(bDestPnt))) // Start/Zielpunkt + if (aRect.IsInside(pObject->GetPoint(bDestPnt ? 1 : 0))) // Start/Zielpunkt ppObj[nDelCount++] = pObject; } @@ -1485,9 +1485,9 @@ void ScDetectiveFunc::UpdateAllArrowColors() ScAddress aErrPos; if ( HasError( aSource, aErrPos ) ) - bError = sal_True; + bError = true; else - bArrow = sal_True; + bArrow = true; } else if ( eType == SC_DETOBJ_FROMOTHERTAB ) { @@ -1497,15 +1497,15 @@ void ScDetectiveFunc::UpdateAllArrowColors() ScAddress aErrPos; if ( HasError( ScRange( aPos), aErrPos ) ) - bError = sal_True; + bError = true; else - bArrow = sal_True; + bArrow = true; } else if ( eType == SC_DETOBJ_CIRCLE ) { // circles (error marks) are always red - bError = sal_True; + bError = true; } else if ( eType == SC_DETOBJ_NONE ) { @@ -1513,7 +1513,7 @@ void ScDetectiveFunc::UpdateAllArrowColors() if ( pObject->ISA( SdrRectObj ) && !pObject->ISA( SdrCaptionObj ) ) { - bArrow = sal_True; + bArrow = true; } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits