diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-10-14 15:51:31 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2024-10-15 10:18:07 +0200 |
commit | d51b9be02d940cce58db1f392ce9f12e04d76194 (patch) | |
tree | 8471e17efd20ef1d9c7844672516d2b558389bb7 /svx | |
parent | e010913d497adf8138c68dd25670039d11fdd3dc (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>
(cherry picked from commit c5703bbeebc6b4976dbf7cafb2e0bfda6345f864)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174921
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdview.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index 27233a6435a6..297f21fe7252 100644 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -518,8 +518,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); } |