oox/source/ole/axfontdata.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 386fcf9be786b302cd2c6f85ff6d8d97a6777926 Author: Tamás Zolnai <[email protected]> Date: Sun Aug 6 02:10:37 2017 +0200 Avoid warning about invalid alignment value Default should be left, which equals 1 as an integer. Change-Id: Ib0498b12d4356bf786ebf8b6fd04d591ac84af6b Reviewed-on: https://gerrit.libreoffice.org/40799 Tested-by: Jenkins <[email protected]> Reviewed-by: Tamás Zolnai <[email protected]> diff --git a/oox/source/ole/axfontdata.cxx b/oox/source/ole/axfontdata.cxx index b3da64439a04..1f44be937a26 100644 --- a/oox/source/ole/axfontdata.cxx +++ b/oox/source/ole/axfontdata.cxx @@ -58,7 +58,7 @@ bool AxFontData::importBinaryModel( BinaryInputStream& rInStrm ) aReader.skipIntProperty< sal_Int32 >(); // font offset aReader.readIntProperty< sal_uInt8 >( mnFontCharSet ); aReader.skipIntProperty< sal_uInt8 >(); // font pitch/family - sal_uInt8 nTmp = 0; + sal_uInt8 nTmp = static_cast<sal_uInt8>(AxHorizontalAlign::Left); aReader.readIntProperty< sal_uInt8 >( nTmp ); mnHorAlign = static_cast<AxHorizontalAlign>(nTmp); aReader.skipIntProperty< sal_uInt16 >(); // font weight
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
