]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed ClusterTable cluster hash/importance map book-keeping problem
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 12 Apr 2018 21:43:36 +0000 (00:43 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 13 Apr 2018 21:47:56 +0000 (00:47 +0300)
commit63a760551d224e6903ffcfadcfbcbee5e8d7665f
treec4da1c6e0e2dce37799745584ab3be3bb4e1b34a
parent8a9ce89ef307146be10a4c1851c47132a26e6f4d
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
(cherry picked from commit f59872e129c2d1b84fe322ae120fbeac22a94f88)
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