From 9e4025f886742813c1200921551d7e2da2bcf4a0 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Fri, 10 Nov 2017 00:47:47 +0300 Subject: [PATCH] CodeEditor fixed --- limereport/scripteditor/lrcodeeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limereport/scripteditor/lrcodeeditor.cpp b/limereport/scripteditor/lrcodeeditor.cpp index c1b5643..57a9d69 100644 --- a/limereport/scripteditor/lrcodeeditor.cpp +++ b/limereport/scripteditor/lrcodeeditor.cpp @@ -186,8 +186,8 @@ bool CodeEditor::matchLeftParenthesis(QTextBlock currentBlock, QChar parenthesis bool CodeEditor::matchRightParenthesis(QTextBlock currentBlock, QChar parenthesisType, int i, int numRightParentheses) { TextBlockData *data = static_cast(currentBlock.userData()); - QVector parentheses = data->parentheses(); if (data){ + QVector parentheses = data->parentheses(); int docPos = currentBlock.position(); for (; i > -1 && parentheses.size() > 0; --i) { ParenthesisInfo *info = parentheses.at(i);