tdf#163486: PVS: Expression is always true

V560 	A part of conditional expression is always true: pItem->mbVisible.

Change-Id: Id9c55e610fa81003a5ad7661d98962aa6d48c062
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176579
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2024-11-14 11:34:16 +01:00
parent 7b7d935478
commit 9b3159b984

View file

@ -201,7 +201,7 @@ OUString ThumbnailView::RequestHelp(tools::Rectangle& rHelpRect)
if (!pItem->mbVisible)
continue;
const tools::Rectangle& rDrawArea = pItem->getDrawArea();
if (pItem->mbVisible && rDrawArea.Contains(aPos))
if (rDrawArea.Contains(aPos))
{
rHelpRect = rDrawArea;
return pItem->getHelpText();