gui: PreviewGeneratorPlainText: Fix case of empty preview when word found on pos 0
此提交包含在:
@@ -9,9 +9,9 @@ QString PreviewGeneratorPlainText::generatePreviewText(QString content, RenderCo
|
|||||||
|
|
||||||
QMap<int, QString> snippet;
|
QMap<int, QString> snippet;
|
||||||
|
|
||||||
int coveredRange = 0;
|
int coveredRange = -1;
|
||||||
|
int lastWordPos = -1;
|
||||||
|
|
||||||
int lastWordPos = 0;
|
|
||||||
QHash<QString, int> countmap;
|
QHash<QString, int> countmap;
|
||||||
|
|
||||||
const unsigned int maxSnippets = 7;
|
const unsigned int maxSnippets = 7;
|
||||||
|
新增問題並參考
封鎖使用者