Ver Fonte

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

Book Pauk há 6 anos atrás
pai
commit
618111ab05
1 ficheiros alterados com 1 adições e 1 exclusões
  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 && 
                         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)});
-                        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;
                         i = -1;
                     }