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
Pipeline #6444 passed with stage
in 1 minute and 51 seconds
......@@ -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++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment