summaryrefslogtreecommitdiff
path: root/accessibility/source/helper/characterattributeshelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/source/helper/characterattributeshelper.cxx')
-rw-r--r--accessibility/source/helper/characterattributeshelper.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/accessibility/source/helper/characterattributeshelper.cxx b/accessibility/source/helper/characterattributeshelper.cxx
index 9cbeaaee8a7c..1d6120ff483c 100644
--- a/accessibility/source/helper/characterattributeshelper.cxx
+++ b/accessibility/source/helper/characterattributeshelper.cxx
@@ -19,6 +19,7 @@
#include <helper/characterattributeshelper.hxx>
#include <tools/gen.hxx>
+#include <vcl/unohelp.hxx>
#include <comphelper/sequence.hxx>
using namespace ::com::sun::star::uno;
@@ -39,7 +40,7 @@ CharacterAttributesHelper::CharacterAttributesHelper( const vcl::Font& rFont, sa
m_aAttributeMap.emplace( OUString( "CharStrikeout" ), Any( static_cast<sal_Int16>(rFont.GetStrikeout()) ) );
m_aAttributeMap.emplace( OUString( "CharUnderline" ), Any( static_cast<sal_Int16>(rFont.GetUnderline()) ) );
m_aAttributeMap.emplace( OUString( "CharWeight" ), Any( static_cast<float>(rFont.GetWeight()) ) );
- m_aAttributeMap.emplace( OUString( "CharPosture" ), Any( static_cast<sal_Int16>(rFont.GetItalic()) ) );
+ m_aAttributeMap.emplace( OUString( "CharPosture" ), Any( vcl::unohelper::ConvertFontSlant(rFont.GetItalic()) ) );
}