summaryrefslogtreecommitdiff
path: root/sw/source/core/access/acccell.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/access/acccell.cxx')
-rw-r--r--sw/source/core/access/acccell.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx
index 90fff856bf2e..f75a6fda8cdd 100644
--- a/sw/source/core/access/acccell.cxx
+++ b/sw/source/core/access/acccell.cxx
@@ -418,7 +418,7 @@ sal_Int32 SAL_CALL SwAccessibleCell::getBackground()
SolarMutexGuard g;
const SvxBrushItem &rBack = GetFrame()->GetAttrSet()->GetBackground();
- sal_uInt32 crBack = rBack.GetColor().GetColor();
+ Color crBack = rBack.GetColor();
if (COL_AUTO == crBack)
{
@@ -428,11 +428,11 @@ sal_Int32 SAL_CALL SwAccessibleCell::getBackground()
uno::Reference<XAccessibleComponent> xCompoentDoc(xAccDoc, uno::UNO_QUERY);
if (xCompoentDoc.is())
{
- crBack = static_cast<sal_uInt32>(xCompoentDoc->getBackground());
+ crBack = Color(xCompoentDoc->getBackground());
}
}
}
- return crBack;
+ return sal_Int32(crBack);
}
// XAccessibleSelection