summaryrefslogtreecommitdiff
path: root/basctl/source/accessibility/accessibledialogcontrolshape.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/accessibility/accessibledialogcontrolshape.cxx')
-rw-r--r--basctl/source/accessibility/accessibledialogcontrolshape.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/basctl/source/accessibility/accessibledialogcontrolshape.cxx b/basctl/source/accessibility/accessibledialogcontrolshape.cxx
index 5502cde6d32b..25f90d11090c 100644
--- a/basctl/source/accessibility/accessibledialogcontrolshape.cxx
+++ b/basctl/source/accessibility/accessibledialogcontrolshape.cxx
@@ -447,12 +447,12 @@ sal_Int32 AccessibleDialogControlShape::getForeground( )
{
OExternalLockGuard aGuard( this );
- sal_Int32 nColor = 0;
+ Color nColor;
vcl::Window* pWindow = GetWindow();
if ( pWindow )
{
if ( pWindow->IsControlForeground() )
- nColor = pWindow->GetControlForeground().GetColor();
+ nColor = pWindow->GetControlForeground();
else
{
vcl::Font aFont;
@@ -460,11 +460,11 @@ sal_Int32 AccessibleDialogControlShape::getForeground( )
aFont = pWindow->GetControlFont();
else
aFont = pWindow->GetFont();
- nColor = aFont.GetColor().GetColor();
+ nColor = aFont.GetColor();
}
}
- return nColor;
+ return sal_Int32(nColor);
}
@@ -472,17 +472,17 @@ sal_Int32 AccessibleDialogControlShape::getBackground( )
{
OExternalLockGuard aGuard( this );
- sal_Int32 nColor = 0;
+ Color nColor;
vcl::Window* pWindow = GetWindow();
if ( pWindow )
{
if ( pWindow->IsControlBackground() )
- nColor = pWindow->GetControlBackground().GetColor();
+ nColor = pWindow->GetControlBackground();
else
- nColor = pWindow->GetBackground().GetColor().GetColor();
+ nColor = pWindow->GetBackground().GetColor();
}
- return nColor;
+ return sal_Int32(nColor);
}