From e483b6c41df9792396b58f5010d0b3991d1c2c29 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Sun, 9 Oct 2011 23:22:46 +0000 Subject: [PATCH] add picture height / width to PicturesManager arguments git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1180744 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hwpf/converter/AbstractWordConverter.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java index 30b7f5f1bc..5d35b20246 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java @@ -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;