Minor bug fix to previous check-in: made sure blank cells in the 2 newly generated columns don't get filled in.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@2368 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
d01745284b
commit
dbeaefb00b
@ -339,6 +339,10 @@ public class TransposeColumnsIntoRowsOperation extends AbstractOperation {
|
|||||||
for (int r2 = firstNewRowIndex + 1; r2 < newRows.size(); r2++) {
|
for (int r2 = firstNewRowIndex + 1; r2 < newRows.size(); r2++) {
|
||||||
Row newRow = newRows.get(r2);
|
Row newRow = newRows.get(r2);
|
||||||
for (int c = 0; c < newColumns.size(); c++) {
|
for (int c = 0; c < newColumns.size(); c++) {
|
||||||
|
if (c < startColumnIndex ||
|
||||||
|
(_combinedColumnName != null ?
|
||||||
|
c > startColumnIndex :
|
||||||
|
c > startColumnIndex + 1)) {
|
||||||
Column column = newColumns.get(c);
|
Column column = newColumns.get(c);
|
||||||
int cellIndex = column.getCellIndex();
|
int cellIndex = column.getCellIndex();
|
||||||
|
|
||||||
@ -350,6 +354,7 @@ public class TransposeColumnsIntoRowsOperation extends AbstractOperation {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return new HistoryEntry(
|
return new HistoryEntry(
|
||||||
historyEntryID,
|
historyEntryID,
|
||||||
|
Loading…
Reference in New Issue
Block a user