Skip to content

Commit 736dd03

Browse files
committed
Fix DefaultTableDisplay to use DoubleTable for double[][] arrays
When re-introducing this class from net.imagej.table to org.scijava.table (in 84f714e), the wrapped table type was accidentally switched to GenericTable, instead of using DoubleTable that can be used to check if a given double array is displayed as a table. This commit fixes it.
1 parent 672ad09 commit 736dd03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/scijava/table/DefaultTableDisplay.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public boolean isDisplaying(final Object o) {
9191

9292
// -- Helper methods --
9393

94-
private GenericTable wrapArrayAsTable(final double[][] array) {
95-
final GenericTable table = new DefaultGenericTable();
94+
private DoubleTable wrapArrayAsTable(final double[][] array) {
95+
final DoubleTable table = new DefaultDoubleTable();
9696
int rowCount = 0;
9797
for (int d = 0; d < array.length; d++) {
9898
final DoubleColumn column = new DoubleColumn();

0 commit comments

Comments
 (0)