summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2017-08-06 02:10:37 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2017-08-06 04:00:55 +0200
commit386fcf9be786b302cd2c6f85ff6d8d97a6777926 (patch)
treec88014710f35fc94f0b4456c08df44f5d5f05384
parent8fe86fb89b00b31c73fccbb9bf343818a0a1f537 (diff)
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 <ci@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
-rw-r--r--oox/source/ole/axfontdata.cxx2
1 files changed, 1 insertions, 1 deletions
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