My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1450: Adding comment causes wrong code to be displayed.
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by sgrea...@gmail.com, Jun 20, 2012
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version: 2.1.8

What steps will reproduce the problem?
1. Push a patch that changes a few lines (5-10) to a large file.
2. View change in gerrit
3. Switch to 10 lines of context.
4. Note the line number of the last line that is displayed.
5. Switch to full file context.
6. Add a comment somewhere below where the change was made where the line number of the comment is greater than the line number noted in step 4.
7. Switch to 10 lines of context.

What is the expected output? What do you see instead?

The comment is displayed at the correct line number but the code at that line is different that the code that is displayed in full file mode.

Please provide any additional information below.

Sign in to add a comment

Powered by Google Project Hosting