summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJian Hong Cheng <chengjh@apache.org>2012-08-29 04:27:52 +0000
committerJian Hong Cheng <chengjh@apache.org>2012-08-29 04:27:52 +0000
commit720fc77527377968a45631d1c6a711b4cae02d39 (patch)
tree21bbfe907f02a6a43e44278c305a619f55dc71d9
parent920887fe917faa78791f91b00f374f24d0941618 (diff)
Fix issue #i120654: Number range variable filed shows in AOO
* sw/source/filter/ww8/ww8par5.cxx MS Word Binary compatibility Patch by: Jane Kang,<kangjane2012@gmail.com> Found by: Yan Ji,<yanji.yj@gmail.com> Review by: Jian Hong Cheng,<chengjh@apache.org>
Notes
-rw-r--r--sw/source/filter/ww8/ww8par5.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx
index 92f00fd472e0..30fa4e32be39 100644
--- a/sw/source/filter/ww8/ww8par5.cxx
+++ b/sw/source/filter/ww8/ww8par5.cxx
@@ -1494,6 +1494,12 @@ eF_ResT SwWW8ImplReader::Read_F_Seq( WW8FieldDesc*, String& rStr )
SwSetExpFieldType( &rDoc, aSequenceName, nsSwGetSetExpType::GSE_SEQ ) );
SwSetExpField aFld( pFT, aEmptyStr, eNumFormat );
+ //Bug 120654: Add for /h flag(/h: Hiden the field result.)
+ if (bHidden)
+ aFld.SetSubType(aFld.GetSubType() | nsSwExtendedSubType::SUB_INVISIBLE);
+ //Bug 120654(End)
+
+
if (sStart.Len())
aFld.SetFormula( ( aSequenceName += '=' ) += sStart );
else if (!bCountOn)