File tree 1 file changed +3
-3
lines changed
src/main/java/com/flowingcode/vaadin/addons/gridexporter
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -245,16 +245,16 @@ private int fillData(
245
245
Row newRow = sheet .createRow (startingCell [0 ].getRowIndex () + 1 );
246
246
startingCell [0 ] = newRow .createCell (startingCell [0 ].getColumnIndex ());
247
247
startingCell [0 ].setCellStyle (cellStyle );
248
- // update the data range by updating last row
249
- dataRange .setLastRow (dataRange .getLastRow () + 1 );
250
248
}
249
+ // update the data range by updating last row
250
+ dataRange .setLastRow (dataRange .getLastRow () + 1 );
251
251
buildRow (t , sheet , startingCell [0 ]);
252
252
notFirstRow [0 ] = true ;
253
253
});
254
254
// since we initialized the cell range with the data placeholder cell, we use
255
255
// the existing 'getLastColumn' to keep the offset of the data range
256
256
dataRange .setLastColumn (dataRange .getLastColumn () + exporter .getColumns ().size () - 1 );
257
- return startingCell [ 0 ]. getRowIndex ();
257
+ return dataRange . getLastRow ();
258
258
}
259
259
260
260
@ SuppressWarnings ("unchecked" )
You can’t perform that action at this time.
0 commit comments