]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Fix error that hides last tech type table row. 76/4476/1
authorReino Ruusu <reino.ruusu@semantum.fi>
Thu, 24 Sep 2020 07:53:08 +0000 (10:53 +0300)
committerReino Ruusu <reino.ruusu@semantum.fi>
Thu, 24 Sep 2020 08:11:13 +0000 (08:11 +0000)
gitlab #93

Change-Id: I4ca2402f53b7a748ccd41ff964b5d09944994a5d

org.simantics.district.network.ui/src/org/simantics/district/network/ui/techtype/table/TechTypeTableDataProvider.java

index 850cc39f3c3d86190ac7f91d7b814cb871231417..d6b0c7d228bbf55554141b6cda434c426694718f 100644 (file)
@@ -66,7 +66,7 @@ public class TechTypeTableDataProvider implements IDataProvider {
 
     @Override
     public int getRowCount() {
-        return filteredRecords.size() - 1;
+        return filteredRecords.size();
     }
 
     public boolean isEditable(int columnIndex, int rowIndex) {