summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/sdrhittesthelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/sdrhittesthelper.cxx')
-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 473c09b10f5d..58eef58a9fd6 100644
--- a/svx/source/svdraw/sdrhittesthelper.cxx
+++ b/svx/source/svdraw/sdrhittesthelper.cxx
@@ -60,7 +60,7 @@ SdrObject* SdrObjectPrimitiveHit(
}
else
{
- if(!pVisiLayer || pVisiLayer->IsSet(rObject.GetLayer()))
+ if( rObject.IsVisible() && (!pVisiLayer || pVisiLayer->IsSet(rObject.GetLayer())))
{
// single object, 3d object, empty scene or empty group. Check if
// it's a single 3D object