summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2011-04-13 10:05:09 +0200
committerThorsten Behrens <tbehrens@novell.com>2011-04-13 10:06:51 +0200
commit8240aa1f90379d36a27b08f9b01513e8caf00166 (patch)
tree217abbd9a7d18a86d8f082efb854c07362d7eb22 /sw
parenta0528192fe77de6cc58743fa9199fe5421d2c3be (diff)
Fix input list default selection on ww8 import
Fix for i#100621 - more correct pre-selection of list item for input fields - aligns import with export at least, though still not perfect - format docs say this is a dynamically-sized value (i.e. we're going to be wrong for item numbers 32 and higher)
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8par3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index cdf6491a2e..3680f684a4 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -2158,7 +2158,7 @@ void WW8FormulaControl::FormulaRead(SwWw8ControlType nWhich,
nType=1;
}
fUnknown = nHeaderByte & 0x3;
- fDropdownIndex = (nHeaderByte & 0xFC) >> 2;
+ fDropdownIndex = (nHeaderByte & 0x7C) >> 2;
*pDataStream >> nField;
fToolTip = nField & 0x01;
fNoMark = (nField & 0x02)>>1;