Skip to content

Commit

Permalink
[fix] Always fill topology tables for all boundaries in the database …
Browse files Browse the repository at this point in the history
…because selected boundaries were deletedt
  • Loading branch information
lacardonap committed May 26, 2021
1 parent fea46f8 commit fb6dbeb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions asistente_ladm_col/gui/toolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,12 @@ def build_boundary(self, db):

# topology tables are recalculated with the new boundaries
if topology_affected_features[db.names.POINT_BFS_T]:
self.fill_topology_table_pointbfs(db, use_selection)
# it is not possible to use the features selected by the user because they have been removed
self.fill_topology_table_pointbfs(db, False)

if topology_affected_features[db.names.MORE_BFS_T] + topology_affected_features[db.names.LESS_BFS_T] > 0:
self.fill_topology_tables_morebfs_less(db, use_selection)
# it is not possible to use the features selected by the user because they have been removed
self.fill_topology_tables_morebfs_less(db, False)

else:
self.logger.info_msg(__name__, QCoreApplication.translate("ToolBar", "There are no boundaries to build."))
Expand Down

0 comments on commit fb6dbeb

Please sign in to comment.