diff options
author | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-02-03 16:01:13 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedricbosdo@openoffice.org> | 2011-02-03 16:01:52 +0100 |
commit | c57c4b64a18041534359b2cb98389a34e7222b92 (patch) | |
tree | 7da13bc257919f4df580426adb493078da16df8d | |
parent | 4ad751946b5e8376a3af83de36392f3e13ee57fa (diff) |
fdo#33561: properly cast the byte in signed short
-rw-r--r-- | sw/source/filter/ww8/ww8par6.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index 317c39ffbd..add4be17f7 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -3298,7 +3298,7 @@ void SwWW8ImplReader::Read_SubSuperProp( USHORT, const BYTE* pData, short nLen ) ww::WordVersion eVersion = pWwFib->GetFIBVersion(); // Font-Position in HalfPoints - short nPos = eVersion <= ww::eWW2 ? *pData : SVBT16ToShort( pData ); + short nPos = eVersion <= ww::eWW2 ? static_cast< sal_Int8 >( *pData ) : SVBT16ToShort( pData ); INT32 nPos2 = nPos * ( 10 * 100 ); // HalfPoints in 100 * tw const SvxFontHeightItem* pF = (const SvxFontHeightItem*)GetFmtAttr(RES_CHRATR_FONTSIZE); |