1
0
Derivar 0

gui: PreviewGeneratorPlainText: Fix case of empty preview when word found on pos 0

Este cometimento está contido em:
Albert S. 2022-07-24 12:25:38 +02:00
ascendente 1aa5ae0ccc
cometimento 43a0f08579
1 ficheiros modificados com 2 adições e 2 eliminações

Ver ficheiro

@ -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;