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 2021/06/14 21:56:46 UTC

svn commit: r1890785 - /poi/trunk/poi/src/main/java/org/apache/poi/ss/util/CellUtil.java

Author: fanningpj
Date: Mon Jun 14 21:56:46 2021
New Revision: 1890785

URL: http://svn.apache.org/viewvc?rev=1890785&view=rev
Log:
fix deprecation issue

Modified:
    poi/trunk/poi/src/main/java/org/apache/poi/ss/util/CellUtil.java

Modified: poi/trunk/poi/src/main/java/org/apache/poi/ss/util/CellUtil.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi/src/main/java/org/apache/poi/ss/util/CellUtil.java?rev=1890785&r1=1890784&r2=1890785&view=diff
==============================================================================
--- poi/trunk/poi/src/main/java/org/apache/poi/ss/util/CellUtil.java (original)
+++ poi/trunk/poi/src/main/java/org/apache/poi/ss/util/CellUtil.java Mon Jun 14 21:56:46 2021
@@ -233,7 +233,7 @@ public final class CellUtil {
     public static void setFont(Cell cell, Font font) {
         // Check if font belongs to workbook
         Workbook wb = cell.getSheet().getWorkbook();
-        final int fontIndex = font.getIndexAsInt();
+        final int fontIndex = font.getIndex();
         if (!wb.getFontAt(fontIndex).equals(font)) {
             throw new IllegalArgumentException("Font does not belong to this workbook");
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org