diff options
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/textwindowaccessibility.cxx | 3 | ||||
-rw-r--r-- | accessibility/source/standard/vclxaccessibleedit.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/accessibility/source/extended/textwindowaccessibility.cxx b/accessibility/source/extended/textwindowaccessibility.cxx index a4de8a27c67a..4c5309795867 100644 --- a/accessibility/source/extended/textwindowaccessibility.cxx +++ b/accessibility/source/extended/textwindowaccessibility.cxx @@ -2352,8 +2352,7 @@ void Document::disposeParagraphs() // static css::uno::Any Document::mapFontColor(::Color const & rColor) { - return css::uno::Any( - static_cast< ::sal_Int32 >(COLORDATA_RGB(rColor.GetColor()))); + return css::uno::makeAny(rColor.GetRGBColor()); // FIXME keep transparency? } diff --git a/accessibility/source/standard/vclxaccessibleedit.cxx b/accessibility/source/standard/vclxaccessibleedit.cxx index 17146ae2518c..f1959b9dc980 100644 --- a/accessibility/source/standard/vclxaccessibleedit.cxx +++ b/accessibility/source/standard/vclxaccessibleedit.cxx @@ -319,7 +319,7 @@ Sequence< PropertyValue > VCLXAccessibleEdit::getCharacterAttributes( sal_Int32 { if (aValue.Name == "CharColor") { - aValue.Value <<= static_cast< sal_Int32 >(COLORDATA_RGB(pFontColor->GetColor().GetColor())); + aValue.Value <<= pFontColor->GetColor().GetRGBColor(); break; } } |