Merge pull request #2037 from nEdAy/feature/fixed-edit-book-sources-dialog-error

Fixed the problem that some book sources were not edited, but the prompt "尚未保存,是否继续编辑" is displayed when exiting.
This commit is contained in:
kunfei authored and GitHub committed 2022-07-09 09:47:29 +08:00
commit 06b38df966
5 files changed
+5 -8

No files matched your search

@@ -125,7 +125,7 @@ public class UmdChapters {
int left = 0;
int chunkCnt = 0;
ByteArrayOutputStream bos = new ByteArrayOutputStream(DEFAULT_CHUNK_INIT_SIZE + 256);
List<byte[]> chunkRbList = new ArrayList<byte[]>();
List<byte[]> chunkRbList = new ArrayList<>();
while(startPos < allContents.length) {
left = allContents.length - startPos;