You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2019/09/15 10:05:42 UTC
svn commit: r1866962 -
/poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java
Author: fanningpj
Date: Sun Sep 15 10:05:42 2019
New Revision: 1866962
URL: http://svn.apache.org/viewvc?rev=1866962&view=rev
Log:
revert change to try fix build
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java?rev=1866962&r1=1866961&r2=1866962&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/util/PPTX2PNG.java Sun Sep 15 10:05:42 2019
@@ -216,9 +216,8 @@ public class PPTX2PNG {
break;
}
- final int width = Math.toIntExact(Math.round(pgsize.getWidth() * scale / lenSide));
- final int height = Math.toIntExact(Math.round(pgsize.getHeight() * scale / lenSide));
-
+ final int width = (int) Math.rint(pgsize.getWidth() * scale / lenSide);
+ final int height = (int) Math.rint(pgsize.getHeight() * scale / lenSide);
for (int slideNo : slidenum) {
proxy.setSlideNo(slideNo);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org