diff --git a/src/main/java/org/ntlab/acanthus_server/resources/gallery/LayersRest.java b/src/main/java/org/ntlab/acanthus_server/resources/gallery/LayersRest.java index 0b601a6..80c69ec 100644 --- a/src/main/java/org/ntlab/acanthus_server/resources/gallery/LayersRest.java +++ b/src/main/java/org/ntlab/acanthus_server/resources/gallery/LayersRest.java @@ -44,6 +44,7 @@ public Integer addLayer(@PathParam("aid") Integer aid, @PathParam("pid") Integer pid) { var pages = gallery.getAnimationByAid(aid).getPageMap(); + for (var p : pages) { if (!p.getPid().equals(pid)) continue; page = p;