forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.8'
Conflicts: tests/unit/unittest/unittest.pro Change-Id: I4f0ab05f96ee60900a3a35fad4c7331238367593
This commit is contained in:
@@ -421,7 +421,7 @@ void Manager::onDocumentUpdated(CPlusPlus::Document::Ptr doc)
|
||||
|
||||
/*!
|
||||
Opens the text editor for the file \a fileName on \a line (1-based) and
|
||||
\a column (1-based).
|
||||
\a column (0-based).
|
||||
*/
|
||||
|
||||
void Manager::gotoLocation(const QString &fileName, int line, int column)
|
||||
@@ -466,7 +466,8 @@ void Manager::gotoLocations(const QList<QVariant> &list)
|
||||
}
|
||||
}
|
||||
}
|
||||
gotoLocation(loc.fileName(), loc.line(), loc.column());
|
||||
// line is 1-based, column is 0-based
|
||||
gotoLocation(loc.fileName(), loc.line(), loc.column() - 1);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user