git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1878750 13f79535-47bb-0310-9956-ffa450edef68tags/before_ooxml_3rd_edition
@@ -3545,8 +3545,9 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet { | |||
// see more details in https://issues.apache.org/bugzilla/show_bug.cgi?id=51710 | |||
if(cellRef.getCol() > sfRef.getFirstColumn() || cellRef.getRow() > sfRef.getFirstRow()){ | |||
String effectiveRef = new CellRangeAddress( | |||
Math.max(cellRef.getRow(), sfRef.getFirstRow()), sfRef.getLastRow(), | |||
Math.max(cellRef.getCol(), sfRef.getFirstColumn()), sfRef.getLastColumn()).formatAsString(); | |||
Math.max(cellRef.getRow(), sfRef.getFirstRow()), Math.max(cellRef.getRow(), sfRef.getLastRow()), | |||
Math.max(cellRef.getCol(), sfRef.getFirstColumn()), Math.max(cellRef.getCol(), sfRef.getLastColumn())) | |||
.formatAsString(); | |||
sf.setRef(effectiveRef); | |||
} | |||
@@ -23,7 +23,6 @@ import org.apache.poi.ss.util.CellUtil; | |||
import org.apache.poi.util.IOUtils; | |||
import org.apache.poi.xssf.XSSFITestDataProvider; | |||
import org.apache.poi.xssf.XSSFTestDataSamples; | |||
import org.junit.Ignore; | |||
import org.junit.Test; | |||
import java.io.IOException; | |||
@@ -397,7 +396,6 @@ public final class TestXSSFSheetShiftRows extends BaseTestSheetShiftRows { | |||
// bug 59983: Wrong update of shared formulas after shiftRow | |||
@Test | |||
@Ignore | |||
public void testSharedFormulas() throws Exception { | |||
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("TestShiftRowSharedFormula.xlsx"); | |||
XSSFSheet sheet = wb.getSheetAt(0); |