diff options
author | Jian Hong Cheng <chengjh@apache.org> | 2012-08-31 08:48:55 +0000 |
---|---|---|
committer | Jian Hong Cheng <chengjh@apache.org> | 2012-08-31 08:48:55 +0000 |
commit | 1fda245841c2ace65f0067931ae9d2a5be9dda2a (patch) | |
tree | 00c3fe4ce70a70fc1fb2b9f293d0daab6ebadbd2 /sw | |
parent | d91933a4fddd16e2997f7bc945424a97a540a8d3 (diff) |
Fix issue i120717: The graphic's spacing is not correct when open the .doc file
* source/filter/ww8/ww8graf2.cxx
* source/filter/ww8/ww8par6.cxx
MS Word Binary compatibility
Patch by: Fan Zheng,<zheng.easyfan@gmail.com>
Found by: dongjun zong,<zongdj001@gmail.com>
Review by: Jian Hong Cheng,<chengjh@apache.org>
Notes
Notes:
prefer: ecd70a727d7f559ebda1dd726cea1be472948270
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8graf2.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par6.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8graf2.cxx b/sw/source/filter/ww8/ww8graf2.cxx index 410a83a55878..7a308d32d9cb 100644 --- a/sw/source/filter/ww8/ww8graf2.cxx +++ b/sw/source/filter/ww8/ww8graf2.cxx @@ -622,7 +622,7 @@ SwFrmFmt* SwWW8ImplReader::ImportGraf(SdrTextObj* pTextObj, aAttrSet.Put(aFlySet); } - //Modified for i120716,for graf importing from MS Word 2003 binary format, + //Modified for i120717,for graf importing from MS Word 2003 binary format, //there is no border distance. /*Rectangle aInnerDist( pRecord->nDxTextLeft, pRecord->nDyTextTop, pRecord->nDxTextRight, diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index 8aaf604e489e..85fab3730b68 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -1338,7 +1338,7 @@ void GetLineIndex(SvxBoxItem &rBox, short nLineThickness, short nSpace, sal_uInt eCodeIdx = WW8_BordersSO::single0;// 1 Twip for us else if( nLineThickness < 20) eCodeIdx = WW8_BordersSO::single5;// 10 Twips for us - else if (nLineThickness < 50) + else if (nLineThickness < 45) //Modified for i120716 eCodeIdx = WW8_BordersSO::single1;// 20 Twips else if (nLineThickness < 80) eCodeIdx = WW8_BordersSO::single2;// 50 |