From 6454428f1d6c3d759ea2aa61406a24f04faebbff Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Thu, 14 Nov 2024 11:37:05 +0100 Subject: [PATCH] tdf#163486: PVS: Expression is always true V560 A part of conditional expression is always true: pView. Change-Id: I6c01996c66a0c1488080da532734c3c05820337d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176581 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- svx/source/svdraw/svdview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index 4e2ffd113bd0..665e932a18c9 100644 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -1371,7 +1371,7 @@ void SdrView::MarkAll() { const SdrObject* pObj(rMarkList.GetMark(0)->GetMarkedSdrObj()); SdrView* pView = this; - if (pObj && pView && (pObj->GetObjInventor() == SdrInventor::Default) + if (pObj && (pObj->GetObjInventor() == SdrInventor::Default) && (pObj->GetObjIdentifier() == SdrObjKind::Table)) { mxSelectionController.clear();