From e1967187957e1e4b56962564a81917d0ba92cac0 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 27 Nov 2024 11:56:46 +0100 Subject: PVS: V560 A part of conditional expression is always true: !bSingle Since commit 5a725d1fde7381ef9c02afcb639235a11e52182c Author: Noel Grandin Date: Tue Mar 28 15:27:36 2017 +0200 loplugin:singlevalfields Change-Id: I5fabc0537f385531fedb34a0becf69e480d39394 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177404 Reviewed-by: Xisco Fauli Tested-by: Jenkins --- sc/source/ui/view/output.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sc/source') diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index 2fa575982783..ddf3dd5e0b78 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -361,7 +361,6 @@ void ScOutputData::DrawGrid(vcl::RenderContext& rRenderContext, bool bGrid, bool ScBreakType nBreak = ScBreakType::NONE; ScBreakType nBreakOld = ScBreakType::NONE; - bool bSingle; bool bDashed = false; Color aPageColor; Color aManualColor; @@ -469,8 +468,8 @@ void ScOutputData::DrawGrid(vcl::RenderContext& rRenderContext, bool bGrid, bool bool bDraw = bGrid || nBreakOld != ScBreakType::NONE || bMergeCover; // simple grid only if set that way sal_uInt16 nWidthXplus1 = pRowInfo[0].basicCellInfo(nX+1).nWidth; - bSingle = false; //! get into Fillinfo !!!!! - if ( nXMaxCol() && !bSingle ) + bool bSingle = false; //! get into Fillinfo !!!!! + if ( nXMaxCol() ) { bSingle = ( nWidthXplus1 == 0 ); for (nArrY=1; nArrY+1