strokeNOを-1
1 parent 6b71f09 commit 18baf0e28cd06c5687db5e88d3457e9c9c981d8d
g-akagi authored on 27 Jul 2021
Showing 1 changed file
View
2
■■■
src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java
 
Stroke stroke = new Stroke();
stroke.addStrokes(pen, color, thick); // 線の情報を追加
strokes.add(stroke);
stroke.setStrokeNo(strokes.size()); // strokeNoに現在のstrokesのsizeを入れる
stroke.setStrokeNo(strokes.size()-1); // strokeNoに現在のstrokesのsizeを入れる
// if(animation != null) {
// this.Test.setStrokes(pen, color, thick);
// }else{
// throw new WebApplicationException(401);