diff --git a/src/main/java/org/ntlab/acanthus_server/entities/Animation.java b/src/main/java/org/ntlab/acanthus_server/entities/Animation.java index 2b97551..4eaeb7a 100644 --- a/src/main/java/org/ntlab/acanthus_server/entities/Animation.java +++ b/src/main/java/org/ntlab/acanthus_server/entities/Animation.java @@ -64,6 +64,7 @@ this.owner = owner; this.editors.add(new Editor(owner, true)); this.pageMap.put(0, new Page()); + this.pages.add(this.pageMap.get(0)); this.lastUpdate = date.format(dateTimeFormatter); } @@ -223,8 +224,7 @@ //this.lastAccess = LocalDateTime.of(2015, 12, 15, 0, 0); // pageとlayerを1枚ずつ追加 - this.pages.add(new Page()); - this.pages.get(0).getLayers().add(new Layer()); + this.pages.add(this.pageMap.get(0)); var newWork = new Work(); //ユーザーの制作作品の作成