summaryrefslogtreecommitdiff
path: root/sc/source/ui/Accessibility/AccessibleDocument.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/Accessibility/AccessibleDocument.cxx')
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocument.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx
index 791747d0eae5..2fbabe9efa36 100644
--- a/sc/source/ui/Accessibility/AccessibleDocument.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx
@@ -122,16 +122,16 @@ struct ScShapeDataLess
{
switch (rLayerID)
{
- case SC_LAYER_FRONT:
+ case sal_uInt8(SC_LAYER_FRONT):
rLayerID = 1;
break;
- case SC_LAYER_BACK:
+ case sal_uInt8(SC_LAYER_BACK):
rLayerID = 0;
break;
- case SC_LAYER_INTERN:
+ case sal_uInt8(SC_LAYER_INTERN):
rLayerID = 2;
break;
- case SC_LAYER_CONTROLS:
+ case sal_uInt8(SC_LAYER_CONTROLS):
rLayerID = 3;
break;
}
@@ -146,7 +146,7 @@ struct ScShapeDataLess
sal_Int16 nLayerID = 0;
if( (aPropAny >>= nLayerID) )
{
- if (nLayerID == SC_LAYER_BACK)
+ if (SdrLayerID(nLayerID) == SC_LAYER_BACK)
bResult = true;
}
}
@@ -1230,7 +1230,7 @@ void ScChildrenShapes::AddShape(const uno::Reference<drawing::XShape>& xShape, b
sal_Int16 nLayerID = 0;
if( aPropAny >>= nLayerID )
{
- if( (nLayerID == SC_LAYER_INTERN) || (nLayerID == SC_LAYER_HIDDEN) )
+ if( (SdrLayerID(nLayerID) == SC_LAYER_INTERN) || (SdrLayerID(nLayerID) == SC_LAYER_HIDDEN) )
pShape->bSelectable = false;
else
pShape->bSelectable = true;