https://issues.apache.org/bugzilla/show_bug.cgi?id=50884
--- Comment #3 from [email protected] 2011-03-21 10:28:00 EDT --- I have looked at the source code. The problem is in the method createFreezePane of the XSSFSheet class. When a new CellReference is created, row and column are inverted in the constructor. public void createFreezePane(int colSplit, int rowSplit, int leftmostColumn, int topRow) { CTPane pane = getPane(); if (colSplit > 0) pane.setXSplit(colSplit); if (rowSplit > 0) pane.setYSplit(rowSplit); pane.setState(STPaneState.FROZEN); if (rowSplit == 0) { pane.setTopLeftCell(new CellReference(0, topRow).formatAsString()); pane.setActivePane(STPane.TOP_RIGHT); } else if (colSplit == 0) { pane.setTopLeftCell(new CellReference(rowSplit, 0).formatAsString()); pane.setActivePane(STPane.BOTTOM_LEFT); } else { pane.setTopLeftCell(new CellReference(leftmostColumn, topRow).formatAsString()); pane.setActivePane(STPane.BOTTOM_RIGHT); } CTSheetView ctView = getDefaultSheetView(); ctView.setSelectionArray(null); CTSelection sel = ctView.addNewSelection(); sel.setPane(pane.getActivePane()); } -- 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]
