浏览代码

Поправка бага

Book Pauk 6 年之前
父节点
当前提交
618111ab05
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/components/Reader/share/BookParser.js

+ 1 - 1
client/components/Reader/share/BookParser.js

@@ -427,7 +427,7 @@ export default class BookParser {
                     if (i - spaceIndex >= maxWordLength && i < p.text.length - 1 && 
                     if (i - spaceIndex >= maxWordLength && i < p.text.length - 1 && 
                         this.measureText(p.text.substr(spaceIndex + 1, i - spaceIndex), p.style) >= this.w - this.p) {
                         this.measureText(p.text.substr(spaceIndex + 1, i - spaceIndex), p.style) >= this.w - this.p) {
                         result.push({style: p.style, image: p.image, text: p.text.substr(0, i + 1)});
                         result.push({style: p.style, image: p.image, text: p.text.substr(0, i + 1)});
-                        p = {style: p.style, text: p.text.substr(i + 1)};
+                        p = {style: p.style, image: p.image, text: p.text.substr(i + 1)};
                         spaceIndex = -1;
                         spaceIndex = -1;
                         i = -1;
                         i = -1;
                     }
                     }