| commit | 7aaa3109edfc2e1fadc533d4d276ee7c14b80dea | [log] |
|---|---|---|
| author | Burak Bala <burak.bbala@gmail.com> | Tue Jan 28 20:00:52 2020 +0300 |
| committer | Michael Stahl <michael.stahl@cib.de> | Thu Feb 20 10:42:28 2020 +0100 |
| tree | fee9a3c4c53b2e714c00e822aaed8784061969fb | |
| parent | 69e708868f6046cada955a16bca966370ce3218a [diff] |
tdf#42982 Make UNO error reporting more descriptive Change-Id: Iea5527ec88778f573b2e03ccd069142b7493c63c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87650 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
diff --git a/vbahelper/source/msforms/vbanewfont.cxx b/vbahelper/source/msforms/vbanewfont.cxx index 2e7e1ef..b966d84 100644 --- a/vbahelper/source/msforms/vbanewfont.cxx +++ b/vbahelper/source/msforms/vbanewfont.cxx
@@ -71,7 +71,7 @@ void SAL_CALL VbaNewFont::setCharset( sal_Int16 nCharset ) if( (0 <= nCharset) && (nCharset <= SAL_MAX_UINT8) ) eFontEnc = rtl_getTextEncodingFromWindowsCharset( static_cast< sal_uInt8 >( nCharset ) ); if( eFontEnc == RTL_TEXTENCODING_DONTKNOW ) throw uno::RuntimeException(); throw uno::RuntimeException("an unknown or missing encoding"); mxProps->setPropertyValue( "FontCharset" , uno::Any( static_cast< sal_Int16 >( eFontEnc ) ) ); }