Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
8a22698a
Commit
8a22698a
authored
Sep 20, 2022
by
Laurent Montel
Browse files
Add more comment
parent
613556f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
kmail/grammarplugins/grammarcommon/grammarresultutil.cpp
View file @
8a22698a
...
...
@@ -17,7 +17,7 @@ void GrammarResultUtil::applyGrammarResult(const QVector<GrammarError> &infos, Q
int
blockNumberId
=
info
.
blockId
();
int
startSelectionIndex
=
info
.
start
();
// Block id based on 1 not 0 as QTextDocument (perhaps remove -1 when loading ?)
if
(
blockNumberId
==
-
1
)
{
// Languagetool adapt grammar error
if
(
blockNumberId
==
-
1
)
{
// Languagetool adapt grammar error
We need to generate info. By default languagetool uses 1 paragraph info.
const
QTextBlock
firstBlock
=
document
->
findBlockByNumber
(
0
);
if
(
firstBlock
.
isValid
())
{
QTextCursor
cur
(
document
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment