From: Reino Ruusu Date: Thu, 24 Sep 2020 07:53:08 +0000 (+0300) Subject: Fix error that hides last tech type table row. X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F08%2F4508%2F1;p=simantics%2Fdistrict.git Fix error that hides last tech type table row. gitlab #93 Change-Id: I4ca2402f53b7a748ccd41ff964b5d09944994a5d --- 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) {