mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
処理の順番を改善
This commit is contained in:
parent
da5b134a2b
commit
749cad231c
|
@ -74,13 +74,13 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
logger.debug("addNewPageToLast", "called");
|
logger.debug("addNewPageToLast", "called");
|
||||||
String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする
|
String filename = UUID.randomUUID().toString() + ".png"; // TODO-rca: 拡張子を動的にする
|
||||||
|
|
||||||
|
lacertaVcs.insertPage(this.documentDetail.getPages().size(), filename);
|
||||||
|
|
||||||
Page page = new Page();
|
Page page = new Page();
|
||||||
page.setFileName(filename);
|
page.setFileName(filename);
|
||||||
page.setBitmap(bitmap);
|
page.setBitmap(bitmap);
|
||||||
this.documentDetail.getPages().add(page);
|
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);
|
this.fileManager.getNewInstance().createDirectoryIfNotExist(DEFAULT_SAVE_DIR).resolve(DEFAULT_SAVE_DIR).saveBitmap(bitmap, filename);
|
||||||
|
|
||||||
logger.info("addNewPageToLast", "finished");
|
logger.info("addNewPageToLast", "finished");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user