diff options
Diffstat (limited to 'src/plugins/glsleditor/glslhighlighter.cpp')
-rw-r--r-- | src/plugins/glsleditor/glslhighlighter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/glsleditor/glslhighlighter.cpp b/src/plugins/glsleditor/glslhighlighter.cpp index c21e2ab1dc..0ec949e05c 100644 --- a/src/plugins/glsleditor/glslhighlighter.cpp +++ b/src/plugins/glsleditor/glslhighlighter.cpp @@ -86,7 +86,7 @@ void GlslHighlighter::highlightBlock(const QString &text) if (tokens.isEmpty()) { setCurrentBlockState(previousState); TextDocumentLayout::clearParentheses(currentBlock()); - if (text.length()) // the empty line can still contain whitespace + if (!text.isEmpty()) // the empty line can still contain whitespace setFormat(0, text.length(), formatForCategory(C_VISUAL_WHITESPACE)); TextDocumentLayout::setFoldingIndent(currentBlock(), foldingIndent); return; |