https://issues.apache.org/bugzilla/show_bug.cgi?id=50416
Summary: shiftRows compute wrong the last row number
Product: POI
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [email protected]
In org.apache.poi.hssf.usermodel.HSSFSheet,
in method public void shiftRows(int startRow, int endRow, int n,
boolean copyRowHeight, boolean resetOriginalRowHeight, boolean
moveComments),
the line if ( endRow == _lastrow || endRow + n > _lastrow ) _lastrow =
Math.min( endRow + n, SpreadsheetVersion.EXCEL97.getLastRowIndex() ); compute
the _lastrow if the end == lastrow and n is NEGATIVE.
Regards, F.K
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]