Author: chengjh Date: Fri Aug 31 09:22:37 2012 New Revision: 1379379 URL: http://svn.apache.org/viewvc?rev=1379379&view=rev Log: Fix issue i120716: The graphic's border size and spacing is not correct when open the .doc file
* source/filter/ww8/ww8graf2.cxx MS Word Binary compatibility Patch by: Fan Zheng,<[email protected]> Found by: dongjun zong,<[email protected]> Review by: Jian Hong Cheng,<[email protected]> Modified: incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf2.cxx Modified: incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf2.cxx URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf2.cxx?rev=1379379&r1=1379378&r2=1379379&view=diff ============================================================================== --- incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf2.cxx (original) +++ incubator/ooo/trunk/main/sw/source/filter/ww8/ww8graf2.cxx Fri Aug 31 09:22:37 2012 @@ -622,11 +622,14 @@ SwFrmFmt* SwWW8ImplReader::ImportGraf(Sd aAttrSet.Put(aFlySet); } - - Rectangle aInnerDist( pRecord->nDxTextLeft, + //Modified for i120716,for graf importing from MS Word 2003 binary format, + //there is no border distance. + /*Rectangle aInnerDist( pRecord->nDxTextLeft, pRecord->nDyTextTop, pRecord->nDxTextRight, - pRecord->nDyTextBottom ); - + pRecord->nDyTextBottom );*/ + + Rectangle aInnerDist(0,0,0,0); + //End MatchSdrItemsIntoFlySet( pObject, aAttrSet, pRecord->eLineStyle, pRecord->eShapeType, aInnerDist );
