From 574d7aff3c4b740830423d8a6a275ebc82850309 Mon Sep 17 00:00:00 2001 From: Reino Ruusu Date: Thu, 24 Sep 2020 10:53:08 +0300 Subject: [PATCH] Fix error that hides last tech type table row. gitlab #93 Change-Id: I4ca2402f53b7a748ccd41ff964b5d09944994a5d --- .../network/ui/techtype/table/TechTypeTableDataProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/techtype/table/TechTypeTableDataProvider.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/techtype/table/TechTypeTableDataProvider.java index 850cc39f..d6b0c7d2 100644 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/techtype/table/TechTypeTableDataProvider.java +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/techtype/table/TechTypeTableDataProvider.java @@ -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) { -- 2.47.1