svx/source/svdraw/svdview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7fc2aefc09956bee0353575d2bacca2d5b556b04 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Mon Oct 31 08:21:11 2022 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Oct 31 07:55:57 2022 +0100 tdf#151654 related: dereference after nullptr check pPV nullptr has appeared in commit 6fcee31ed5e1dadcbf9614967592ff188a250007 Date Thu Jul 02 14:28:15 2009 +0000 CWS-TOOLING: integrate CWS aw065 but it was still dereferenced unconditionally after that. Change-Id: I4a9ec2345e4093673eed092f6ddb16ee21b9d00f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142054 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index 6179451b9596..d7d6d5d3adeb 100644 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -544,7 +544,7 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co SdrObjectPrimitiveHit(*pHitObj, aLocalLogicPosition, 0, *pPV, &pPV->GetVisibleLayers(), true)); // TextEdit attached to an object in a locked layer - if (pPV->GetLockedLayers().IsSet(pHitObj->GetLayer())) + if (bTEHit && pPV->GetLockedLayers().IsSet(pHitObj->GetLayer())) { bTEHit=false; }