gui: PreviewGeneratorPlainText: Fix case of empty preview when word found on pos 0
这个提交包含在:
父节点
1aa5ae0ccc
当前提交
43a0f08579
@ -9,9 +9,9 @@ QString PreviewGeneratorPlainText::generatePreviewText(QString content, RenderCo
|
||||
|
||||
QMap<int, QString> snippet;
|
||||
|
||||
int coveredRange = 0;
|
||||
int coveredRange = -1;
|
||||
int lastWordPos = -1;
|
||||
|
||||
int lastWordPos = 0;
|
||||
QHash<QString, int> countmap;
|
||||
|
||||
const unsigned int maxSnippets = 7;
|
||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户