Commit 13892870 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Jump to the symbol's declarator.

parent 942f5a70
......@@ -969,15 +969,14 @@ TextEditor::ITextEditor *CPPEditor::openCppEditorAt(const QString &fileName,
bool CPPEditor::openEditorAt(Symbol *s)
const QString fileName = QString::fromUtf8(s->fileName(), s->fileNameLength());
unsigned line = s->line();
unsigned column = s->column();
if (column)
if (s->isGenerated())
unsigned column = 0;
return openCppEditorAt(fileName, s->line(), column);
return openCppEditorAt(fileName, line, column);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment