Project

General

Profile

Code Review - wrong line displayed

Added by Ivan Cenov over 13 years ago

Hello,

There is wrong behavior in CodeReview Plugin. Here are reproduction steps of the bug:
  1. Click on 'Repository' tab to enter repository.
  2. Select a file (I selected a .c file). Click on 'Preview' to show contents of the file (with line number to the left)
  3. Click 'Add review'. Pencils appear at each line.
  4. Select some line (I selected #50). I Code preview window appears next to the line, but its title is not "Line: 50" (right) but "Line: 73" (wrong). The difference is +23. This displacement is not the same. Sometimes, I find +29 or +30 displacement.

There is not such bad behavior when making code review of diffs:

My system is:
Redmine 1.0.3 (Code Review 0.3.1) -->
mongrel-1.1.5-x86-mingw32, mongrel_service-0.3.4-x86-mswin32 -->
Apache 2.2.16 with SubVersion 1.6.13

Regards
Ivan