mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-25 00:54:39 +03:00
CodeEditor fixed
This commit is contained in:
parent
beaef31c69
commit
9e4025f886
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user