summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbastyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/vba/vbastyle.cxx')
-rw-r--r--sw/source/ui/vba/vbastyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/vba/vbastyle.cxx b/sw/source/ui/vba/vbastyle.cxx
index a7b0cddb73fa..7a2c42a7767e 100644
--- a/sw/source/ui/vba/vbastyle.cxx
+++ b/sw/source/ui/vba/vbastyle.cxx
@@ -65,7 +65,7 @@ sal_Int32 SwVbaStyle::getLanguageID( const uno::Reference< beans::XPropertySet >
void SwVbaStyle::setLanguageID( const uno::Reference< beans::XPropertySet >& xTCProps, sal_Int32 _languageid ) throw (uno::RuntimeException)
{
- lang::Locale aLocale = MsLangId::convertLanguageToLocale( _languageid );
+ lang::Locale aLocale = MsLangId::convertLanguageToLocale( static_cast<LanguageType>(_languageid) );
xTCProps->setPropertyValue( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("CharLocale") ), uno::makeAny( aLocale ) ) ;
}