0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-25 00:54:39 +03:00

CodeEditor fixed

This commit is contained in:
Arin Alexander 2017-11-10 00:47:47 +03:00
parent beaef31c69
commit 9e4025f886

View File

@ -186,8 +186,8 @@ bool CodeEditor::matchLeftParenthesis(QTextBlock currentBlock, QChar parenthesis
bool CodeEditor::matchRightParenthesis(QTextBlock currentBlock, QChar parenthesisType, int i, int numRightParentheses) bool CodeEditor::matchRightParenthesis(QTextBlock currentBlock, QChar parenthesisType, int i, int numRightParentheses)
{ {
TextBlockData *data = static_cast<TextBlockData *>(currentBlock.userData()); TextBlockData *data = static_cast<TextBlockData *>(currentBlock.userData());
QVector<ParenthesisInfo *> parentheses = data->parentheses();
if (data){ if (data){
QVector<ParenthesisInfo *> parentheses = data->parentheses();
int docPos = currentBlock.position(); int docPos = currentBlock.position();
for (; i > -1 && parentheses.size() > 0; --i) { for (; i > -1 && parentheses.size() > 0; --i) {
ParenthesisInfo *info = parentheses.at(i); ParenthesisInfo *info = parentheses.at(i);