Skip to content
Snippets Groups Projects
Commit 1a406624 authored by srosse's avatar srosse
Browse files

OO-2194: fix wrong index

parent c59a2bf7
No related branches found
No related tags found
No related merge requests found
...@@ -100,9 +100,9 @@ public class XlsFlexiTableExporter implements FlexiTableExporter { ...@@ -100,9 +100,9 @@ public class XlsFlexiTableExporter implements FlexiTableExporter {
if(colIndex >= 0) { if(colIndex >= 0) {
Object value = dataModel.getValueAt(r, colIndex); Object value = dataModel.getValueAt(r, colIndex);
if(value instanceof Date) { if(value instanceof Date) {
dataRow.addCell(r, (Date)value, workbook.getStyles().getDateStyle()); dataRow.addCell(c, (Date)value, workbook.getStyles().getDateStyle());
} else if(value instanceof Number) { } else if(value instanceof Number) {
dataRow.addCell(r, (Number)value, null); dataRow.addCell(c, (Number)value, null);
} else { } else {
StringOutput so = StringOutputPool.allocStringBuilder(1000); StringOutput so = StringOutputPool.allocStringBuilder(1000);
cd.getCellRenderer().render(null, so, value, r, ftC, ubu, translator); cd.getCellRenderer().render(null, so, value, r, ftC, ubu, translator);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment