summaryrefslogtreecommitdiff
path: root/svx/source/sdr/contact/viewobjectcontactofgroup.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2023-05-22 18:47:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-23 14:36:47 +0200
commit8de6e211b760761f1f80b2a7371a5f6b640ab14e (patch)
tree491c5af3970afac184b0e31aba8ace51b228a6f7 /svx/source/sdr/contact/viewobjectcontactofgroup.cxx
parentf1ac4376ffaee143ad24931744637aa0a4717016 (diff)
tdf#155410 move some layer/object visibility computation inside SdrObject
which has the nice effect of (a) removing some duplicated code (b) being more efficient with deeply nested complex objects Change-Id: Ifee10d40fca3faac0f5a7b79febdba756850f30f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152124 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/sdr/contact/viewobjectcontactofgroup.cxx')
-rw-r--r--svx/source/sdr/contact/viewobjectcontactofgroup.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontactofgroup.cxx b/svx/source/sdr/contact/viewobjectcontactofgroup.cxx
index 8469a00c1e45..90a74cfabc8a 100644
--- a/svx/source/sdr/contact/viewobjectcontactofgroup.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofgroup.cxx
@@ -76,10 +76,7 @@ namespace sdr::contact
bool ViewObjectContactOfGroup::isPrimitiveVisibleOnAnyLayer(const SdrLayerIDSet& aLayers) const
{
- SdrLayerIDSet aObjectLayers;
- getSdrObject().getMergedHierarchySdrLayerIDSet(aObjectLayers);
- aObjectLayers &= aLayers;
- return !aObjectLayers.IsEmpty();
+ return getSdrObject().isVisibleOnAnyOfTheseLayers(aLayers);
}
} // end of namespace