add picture height / width to PicturesManager arguments

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1180744 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-10-09 23:22:46 +00:00
parent f92821eb1c
commit e483b6c41d
1 changed files with 2 additions and 3 deletions

View File

@ -673,9 +673,8 @@ public abstract class AbstractWordConverter
// usual shape?
return;
float width = officeDrawing.getRectangleRight()
- officeDrawing.getRectangleLeft()
/ AbstractWordUtils.TWIPS_PER_INCH;
float width = ( officeDrawing.getRectangleRight() - officeDrawing
.getRectangleLeft() ) / AbstractWordUtils.TWIPS_PER_INCH;
float height = ( officeDrawing.getRectangleBottom() - officeDrawing
.getRectangleTop() ) / AbstractWordUtils.TWIPS_PER_INCH;