]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed ClusterTable cluster hash/importance map book-keeping problem 13/1713/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 12 Apr 2018 21:43:36 +0000 (00:43 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 12 Apr 2018 21:50:45 +0000 (00:50 +0300)
commitf59872e129c2d1b84fe322ae120fbeac22a94f88
tree00693847ec6a40660b2f094d86184db56530174b
parent56a44956cc6cf02ee85b7cfd55c8d3cbfb80a82f
Fixed ClusterTable cluster hash/importance map book-keeping problem

The main problem was that importance values should have been started
from 1 and 0 is considered an invalid importance value. This prevents
ClusterTable.replaceCluster from making mistakes in importanceMap.

refs #7724

Change-Id: Ie15a2d11bef2b8bdbcee2f5baba47633faa97826
bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/ClusterTable.java
bundles/org.simantics.db.procore/src/org/simantics/db/procore/cluster/ClusterSmall.java