Skip to content
Snippets Groups Projects
Commit 3e6441c2 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch 'issue-with-generating-maps-on-empty-db' into 'devel_12.1.x'

when there is empty db there is problem with id clash that wasn't foreseen

See merge request !409
parents deea4d75 650621c2
No related branches found
No related tags found
2 merge requests!412changes from 12.1.0~beta.1 into master,!409when there is empty db there is problem with id clash that wasn't foreseen
Pipeline #6444 passed
......@@ -636,13 +636,14 @@ public class ProjectService implements IProjectService {
Collections.reverse(buildInLayouts);
for (BuildInLayout buildInLayout : buildInLayouts) {
int submodelId = 0;
Layout topLayout = new Layout(buildInLayout.getTitle(),
params.getProjectDir() + "/" + buildInLayout.getDirectorySuffix() + topModel.getId() + "/", true);
params.getProjectDir() + "/" + buildInLayout.getDirectorySuffix() + submodelId + "/", true);
submodelId++;
topLayout.setStatus(LayoutStatus.NA);
topLayout.setProgress(0.0);
topLayout.setHierarchicalView(buildInLayout.isNested());
topModel.addLayout(0, topLayout);
int submodelId = 1;
List<Layout> semanticLevelOverlays = new ArrayList<>();
if (buildInLayout.equals(BuildInLayout.SEMANTIC) && params.isSemanticZoomContainsMultipleLayouts()) {
for (int i = 0; i <= topModel.getZoomLevels(); i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment