Skip to content

Commit cf0b2b0

Browse files
Add the Row name column only if row names are set.
1 parent e992360 commit cf0b2b0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/DataFrame/DataFrame.class.st

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,10 +1436,11 @@ DataFrame >> inspectionItems: aBuilder [
14361436
sortFunction: #yourself ascending;
14371437
beNotExpandable;
14381438
yourself).
1439-
1440-
table addColumn: (SpStringTableColumn
1441-
title: ''
1442-
evaluated: [ :rowWithName | rowWithName at: 1 ]).
1439+
self rowNames = (1 to: self numberOfRows) asOrderedCollection
1440+
ifFalse: [
1441+
table addColumn: (SpStringTableColumn
1442+
title: ''
1443+
evaluated: [ :rowWithName | rowWithName at: 1 ]) ].
14431444

14441445
self columnNames doWithIndex: [ :headerName :columnIndex |
14451446
table addColumn: (SpStringTableColumn

0 commit comments

Comments
 (0)