summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpoverride.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpoverride.cxx b/lotuswordpro/source/filter/lwpoverride.cxx
index d78de247d746..5856a4c8db42 100644
--- a/lotuswordpro/source/filter/lwpoverride.cxx
+++ b/lotuswordpro/source/filter/lwpoverride.cxx
@@ -338,7 +338,9 @@ void LwpSpacingCommonOverride::Read(LwpObjectStream* pStrm)
if (pStrm->QuickReadBool())
{
ReadCommon(pStrm);
- m_nSpacingType = static_cast<SpacingType>(pStrm->QuickReaduInt16());
+ const sal_uInt16 nSpacingType = pStrm->QuickReaduInt16();
+ //only the bottom pair of bits matter
+ m_nSpacingType = static_cast<SpacingType>(nSpacingType & 0x3);
m_nAmount = pStrm->QuickReadInt32();
m_nMultiple = pStrm->QuickReadInt32();
}