Commit 612fa47c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent 8995db82
......@@ -82,12 +82,11 @@ bool NestedListHelper::canDedent() const
QTextBlock nextBlock = thisBlock.next();
if (thisBlock.isValid()) {
int nextBlockIndent = 0;
int thisBlockIndent = 0;
if (nextBlock.isValid() && nextBlock.textList()) {
nextBlockIndent = nextBlock.textList()->format().indent();
}
if (thisBlock.textList()) {
thisBlockIndent = thisBlock.textList()->format().indent();
int thisBlockIndent = thisBlock.textList()->format().indent();
if (thisBlockIndent >= nextBlockIndent) {
return thisBlockIndent > 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment