aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/glsleditor
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/glsleditor')
-rw-r--r--src/plugins/glsleditor/glslhighlighter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/glsleditor/glslhighlighter.cpp b/src/plugins/glsleditor/glslhighlighter.cpp
index 417525dac6..c21e2ab1dc 100644
--- a/src/plugins/glsleditor/glslhighlighter.cpp
+++ b/src/plugins/glsleditor/glslhighlighter.cpp
@@ -77,7 +77,7 @@ void GlslHighlighter::highlightBlock(const QString &text)
state = lex.state(); // refresh the state
int foldingIndent = initialBraceDepth;
- if (TextBlockUserData *userData = TextDocumentLayout::testUserData(currentBlock())) {
+ if (TextBlockUserData *userData = TextDocumentLayout::textUserData(currentBlock())) {
userData->setFoldingIndent(0);
userData->setFoldingStartIncluded(false);
userData->setFoldingEndIncluded(false);