From d6a0dbeaa2c5adffdc98af84aaf1daac608eed77 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 14 Jan 2024 16:58:19 +0900 Subject: [PATCH] =?UTF-8?q?VCS=E3=81=AB=E5=A4=89=E6=9B=B4=E5=B1=A5?= =?UTF-8?q?=E6=AD=B4=E3=82=92=E7=99=BB=E9=8C=B2=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/processor/impl/DocumentProcessorImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java index 7f97fa66..5efcb976 100644 --- a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java +++ b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java @@ -76,6 +76,8 @@ public class DocumentProcessorImpl implements DocumentProcessor{ page.setBitmap(bitmap); this.documentDetail.getPages().add(page); + lacertaVcs.insertPage(documentDetail.getPages().size(), filename); + this.fileManager.getNewInstance().createDirectoryIfNotExist(DEFAULT_SAVE_DIR).resolve(DEFAULT_SAVE_DIR).saveBitmap(bitmap, filename); logger.info("addNewPageToLast", "finished"); @@ -102,6 +104,8 @@ public class DocumentProcessorImpl implements DocumentProcessor{ page.setFileName(filename); page.setBitmap(bitmap); this.documentDetail.getPages().add(index + 1, page); + + lacertaVcs.insertPage(index + 1, filename); } @Override @@ -116,6 +120,8 @@ public class DocumentProcessorImpl implements DocumentProcessor{ page.setBitmap(bitmap); this.documentDetail.getPages().add(index, page); + lacertaVcs.insertPage(index, filename); + } @Override