summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-10-14 15:51:31 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2024-10-14 21:17:44 +0200
commitc5703bbeebc6b4976dbf7cafb2e0bfda6345f864 (patch)
tree243ad62ac97599f53a33dc0d42a29ad38aee0c65 /svx/source
parent17c4536ebd342bb917df0f5978b1b1b7281ef2b9 (diff)
Dereference before nullptr check
After commit 2c8c436c4a8546276e285dd18f3f7ded091a2c4e (tdf#152992: for Impress/Draw add horizontal hit tolerance for quick text edit, 2023-07-21). Change-Id: Ia19bca115f95c53851dc63cdc7e4336f0289d731 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174793 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/svdraw/svdview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx
index 479aead7b9d2..55e5bcc53d92 100644
--- a/svx/source/svdraw/svdview.cxx
+++ b/svx/source/svdraw/svdview.cxx
@@ -514,8 +514,8 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co
// Around the TextEditArea there's a border to select without going into text edit mode.
tools::Rectangle aBoundRect;
- const GeoStat& rGeo = pTextObj->GetGeoStat();
- if (pTextObj && !rGeo.m_nRotationAngle && !rGeo.m_nShearAngle)
+ if (pTextObj && !pTextObj->GetGeoStat().m_nRotationAngle
+ && !pTextObj->GetGeoStat().m_nShearAngle)
{
pTextObj->TakeTextEditArea(nullptr, nullptr, &aBoundRect, nullptr);
}