mirror of https://github.com/apache/poi.git
Fixed the problem with blank cells dirty rendering values
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9a4e7149ff
commit
ce7e60f17f
|
@ -243,6 +243,8 @@ public class SVTableCellRenderer extends JLabel
|
|||
default:
|
||||
setValue("?");
|
||||
}
|
||||
} else {
|
||||
setValue("");
|
||||
}
|
||||
|
||||
|
||||
|
@ -288,7 +290,9 @@ public class SVTableCellRenderer extends JLabel
|
|||
*/
|
||||
private HSSFCell getCell(int row, int col) {
|
||||
HSSFRow r = st.getRow(row);
|
||||
HSSFCell c = r.getCell((short)col);
|
||||
HSSFCell c = null;
|
||||
if ( r != null)
|
||||
c = r.getCell((short)col);
|
||||
return c;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ public class SVTableModel extends AbstractTableModel {
|
|||
}
|
||||
|
||||
public Class getColumnClass(int c) {
|
||||
return getValueAt(0, c).getClass();
|
||||
return HSSFCell.class;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue