- fix: can't correctly find definition of the symbols in namespace

This commit is contained in:
royqh1979@gmail.com 2021-10-10 00:46:19 +08:00
parent 14ff15ebc1
commit 443aa541fc
2 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ Version 0.6.3
- fix: project's file not correctly syntaxed when open in editor - fix: project's file not correctly syntaxed when open in editor
- libturtle update: add fill() / setBackgroundColor() /setBackgroundImage() functions - libturtle update: add fill() / setBackgroundColor() /setBackgroundImage() functions
- fix: code fold calculation not correct, when editing code - fix: code fold calculation not correct, when editing code
- fix: can't correctly find definition of the symbols in namespace
Version 0.6.2 Version 0.6.2
- fix: The Enter key in the numpad doesn't work - fix: The Enter key in the numpad doesn't work

View File

@ -271,6 +271,8 @@ PStatement CppParser::findStatementOf(const QString &fileName, const QString &ph
if (statement) if (statement)
break; break;
} }
if (!statement)
statement = findStatementStartingFrom(fileName,nextScopeWord,currentScope->parentScope.lock(),force);
} else { } else {
statement = findStatementStartingFrom(fileName,nextScopeWord,parentScopeType,force); statement = findStatementStartingFrom(fileName,nextScopeWord,parentScopeType,force);
} }