[Libreoffice-commits] .: sw/source
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Thu Feb 3 07:01:58 PST 2011
sw/source/filter/ww8/ww8par6.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c57c4b64a18041534359b2cb98389a34e7222b92
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date: Thu Feb 3 16:01:13 2011 +0100
fdo#33561: properly cast the byte in signed short
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx
index 317c39f..add4be1 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);
More information about the Libreoffice-commits
mailing list