summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-12-04 14:13:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-06 13:13:32 +0100
commit19eaf859670b6f22cb89f854316ed0673dacbaa9 (patch)
tree9dec0cc059d4968cf654d3e2ce9e95a6f2bbbb26 /svx/source/svdraw
parentd2ca15952de167b6236139d53f6757a7c0d22d0a (diff)
only collect hitstack if we actually need it
Change-Id: I95f04b05c431f0009c5a843626c397e1dbc3f39e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126402 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r--svx/source/svdraw/sdrhittesthelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/sdrhittesthelper.cxx b/svx/source/svdraw/sdrhittesthelper.cxx
index 2a93dc372555..7534b08d5b7a 100644
--- a/svx/source/svdraw/sdrhittesthelper.cxx
+++ b/svx/source/svdraw/sdrhittesthelper.cxx
@@ -149,7 +149,7 @@ bool ViewObjectContactPrimitiveHit(
bTextOnly);
// ask for HitStack
- aHitTestProcessor2D.collectHitStack(true);
+ aHitTestProcessor2D.collectHitStack(pHitContainer != nullptr);
// feed it with the primitives
aHitTestProcessor2D.process(rSequence);